Save a Beefree session as a template
POST /templates/actions/from_bee_session
/templates/actions/from_bee_sessionSaves the current design of a Beefree visual-editor session as a template. The server fetches the design from Beefree and derives its HTML and simple JSON. With em_template_id it updates that template instead of creating a new one.
When to use: After designing an email in a Beefree session, to keep the result. Use the returned IRI (/templates/{uuid}) as the template of a campaign or automation step.
When not to use: To create a template from HTML or from simple JSON that you already have, use create_template.
Side effects: A thumbnail image is generated in the background. If you update an existing template, campaigns that use it and have not been sent yet (draft, ready or scheduled) get the new design.
Permissions: Requires the author role or higher, or the marketing.templates.write capability.
Value for the X-Auth-Token header parameter.
In: header
The new Template 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/templates/actions/from_bee_session" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "bee_template_id": "string", "em_template_id": "1b8ab2f0-15df-498f-863a-38279d02fd9f", "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"}