Create Template
POST {{baseUrl}}/api/templates/
Create a new custom HTML template.
If there are 1,000 or more templates in an account, creation will fail as there is a limit of 1,000 templates that can be created via the API.
Request specific fields using sparse fieldsets.
Rate limits:
Burst: 10/s
Steady: 150/m
Scopes:
templates:write
Request Body
{"data"=>{"type"=>"template", "attributes"=>{"name"=>"<string>", "editor_type"=>"<string>", "html"=>"<string>", "text"=>"<string>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
revision | string | (Required) API endpoint revision (format: YYYY-MM-DD[.suffix]) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"data":{"type":"template","id":"\u003cstring\u003e","attributes":{"name":"\u003cstring\u003e","editor_type":"\u003cstring\u003e","html":"\u003cstring\u003e","text":"\u003cstring\u003e","created":"\u003cdateTime\u003e","updated":"\u003cdateTime\u003e"},"links":{"self":"\u003curi\u003e"}}}