Search⌘ K

Modifying Templates

Explore how to update your HubSpot CMS templates by sending PUT requests to modify specific template attributes. Understand how to delete templates securely using DELETE requests and handle responses effectively.

Update a template

After creating a template, we might want to change it. This can be done by sending a PUT request to the update template endpoint available in HubSpot.

The base URL for this endpoint is as follows:

https://api.hubspot.com/content/api/v2/templates/{TEMPLATE_ID}

Request parameters

We need to provide the template ID as a path parameter to update a template. In addition, we can provide any attribute as a body parameter we want to update in our template. Only the attributes given as a body parameter will be updated through this endpoint.

...