Create a template from a theme
POST /themes/{uuid}/actions/create_template
/themes/{uuid}/actions/create_templateCopies a ready-made theme into a new template of the account with the title you give. The copy is independent: you can edit it freely.
When to use: To start a new email from a professional design. Then adapt it with update_template or use it in a campaign.
When not to use: To start from one of the account's own base designs use create_template_from_master.
Permissions: Requires the author role or higher, or the marketing.templates.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the theme. Get it with list_themes.
The new Theme resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/themes/c3e9a7d1-2f54-4b86-8d10-a9f6e3b72c58/actions/create_template" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "string" }'{ "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "title": "string", "type": "be_editor", "thumbnail": "http://example.com", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}