Skip to main content

Update Brand Layout

PUT 

/api/store-email-layouts/:id

Saves the layout's HTML and quick settings.

Required scope: settings:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token and the email_templates.update permission.

Body: html (required, max 200000; must contain {{content}} exactly once and no scripts/forms/iframes/handlers — otherwise 422 on html), settings (object|null: logo_url, primary_color, accent_color, footer_text, support_email (email), show_social (bool); unknown keys are dropped; omit/null to keep the saved settings), updated_at (ISO-8601 last seen — 409 when someone saved since), version_source (manual|ai|restore, default manual), version_summary (max 500). A version is recorded when the HTML or settings change (newest 50 kept).

The 409 body is flat JSON: {message, current_updated_at, updated_by}.

Request​

Responses​

OK

Response Headers
    Content-Type