Templates
Regenerate template simple JSON
POST /templates/{uuid}/actions/regenerate_simple_json
POST
/templates/{uuid}/actions/regenerate_simple_jsonRebuilds the simple_json_code of a visual-editor (be_editor) template from its current full design.
When to use: When a template was changed in the visual editor in the panel and its simple_json_code is out of date, before editing it through the API with update_template.
When not to use: It does not work on custom-HTML (code_own) templates.
Permissions: Requires the author role or higher, or the marketing.templates.write capability.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
uuid*string
UUID of the template. Get it with list_templates.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/templates/5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835/actions/regenerate_simple_json" \ -H "X-Auth-Token: YOUR_API_KEY"{ "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"}