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"=>"Monthly Newsletter Template", "editor_type"=>"tempor eiusmod sunt", "html"=>"\n <html>\n <body>\n hello world\n </body>\n </html>\n ", "text"=>"hello world", "return_fields"=>["in sint fugiat", "cillum ea"]}}}
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":"ullam","attributes":{"company_id":"COMPANY_ID","name":"qui culpa eu sunt","editor_type":"eu in laboris","html":"laborum eiusmod aliquip","text":"nulla aliquip eiusmod","created":"2022-11-08T00:00:00","updated":"2022-11-08T00:00:00"},"links":{"self":"http://sPUUdEPMFdBqpDfDGxxkhFXDDkPJvsGZ.mtlNeKbUZkf"}}}