POST
/
content
/
api
/
v2
/
templates
Create a new Template
curl --request POST \
  --url https://api.hubapi.com/content/api/v2/templates \
  --header 'Content-Type: application/json' \
  --data '{
  "category_id": 123,
  "folder": "<string>",
  "template_type": 123,
  "path": "<string>",
  "source": "<string>",
  "is_available_for_new_content": false
}'
{
  "id": "<string>",
  "label": "<string>",
  "path": "<string>",
  "source": "<string>",
  "category_id": 123,
  "template_type": "<string>",
  "folder": "<string>",
  "is_available_for_new_content": true,
  "is_from_layout": true,
  "is_read_only": true,
  "cdn_url": "<string>",
  "cdn_minified_url": "<string>",
  "deleted_at": 123,
  "generated_from_layout_id": "<string>",
  "thumbnail_path": "<string>",
  "thumbnail_width": 123,
  "updated": 123,
  "updated_by": "<string>",
  "portal_id": 123,
  "archived": true,
  "linked_style_id": "<string>",
  "type": "<string>"
}

Required Scopes

This API requires one of the following scopes:
  • content

Body

application/json

Response

201 - application/json

Template created successfully

The response is of type object.