API
Change a template’s design
A designer applies your instructions and leaves the rest alone.
POST/templates/{id}/redesign
Runs the real call on your workspace.
POST /templates/{id}/redesign
A designer applies your instructions and leaves the rest alone.
Example
Needs templates:write. instructions says what to change. The change lands in the draft, and live sends keep the published version until you publish.
curl -X POST "$OE/templates/spring-launch/redesign" -H "$AUTH" -H "Content-Type: application/json" \ -d '{ "instructions": "Make the button orange and translate the copy into Spanish." }'{ "object": "template", "id": "tpl_8f3a1c2e9b7d4a60", "name": "Spring launch", "latestVersion": 2, "design": { "subject": "La primavera ya está aquí", "notes": [], "imageProblems": [], "changes": { "edited": 5, "added": 0, "removed": 0 }, "draftVersion": 2 }}A template written in raw HTML cannot be redesigned and is a 422 invalid_template.