APIs & Integrations

mikedrizzo1
投稿者

Is there a mapping of the template types to actual template type names?

Is there a mapping of the template types to actual template type names that we can leverage to share with our AuditHub users that a "2" = "Email" and a "23"="page" (example, not sure if that's right).

 

When we're asking for the "template type" the API returns a number such as "2" or "20" - wondering if anyone has created a table that maps the number with the actual type i.e. 2 = "HTML" 20 = "CSS" -- something like that.

0 いいね!
6件の返信
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Is there a mapping of the template types to actual template type names?

Hey @mikedrizzo1 

Are you talking about the category id?

You can find those here 

Just so we are clear, what endpoint are you calling?

Create_a_new_Template___CMS_Templates.png

0 いいね!
mikedrizzo1
投稿者

Is there a mapping of the template types to actual template type names?

Yes, that's the endpoint we're using....

 

Honestly, that looked promising but for example in our test instance, we have template types of ID 24 and 25 which don't map to anything. Are there different "templates" in HubSpot? So far in the API (and docs) HubSpot only provides one endpoint for templates which is the one that you sent.

0 いいね!
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Is there a mapping of the template types to actual template type names?

Just spoke with the team and this is not comprehensive.  I am adding a task to get it updated.  Stay tuned

0 いいね!
mikedrizzo1
投稿者

Is there a mapping of the template types to actual template type names?

Any more news here?

dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Is there a mapping of the template types to actual template type names?

Just took a look and I see that it is still in  the queue.  I will see if I can push to get this done quicker 😀

0 いいね!
mikedrizzo1
投稿者

Is there a mapping of the template types to actual template type names?

Fantastic! Thank you so much