What's the difference between COS Layout and Template API?


#1

Well I am bit confused between those… I am sure I really understand the Template API and where its mapping under the Huspot dashboard… But I am not sure about Layout API… Anyway I am trying to use COS page publishing api… I can’t find a way to assign a template while creating a new page. In fact there is practically no example in the API documentation that clearly show the “Create a new page” api call under COS page publishing api.

Update: I found that there is indeed template_path parameter for that api call which is not mentioned in list of available parameters on this page - http://developers.hubspot.com/docs/methods/pages/post_pages . But I found out in small example given beside it.