Skip to main content
POST
Update a theme
When styles change, the update cascades to every email using this theme, and affectedEmailCount in the response reports how many emails were affected. Manual style edits made on individual emails are preserved: the cascade only changes properties an email has not overridden. A per-email override is removed only when it becomes identical to the theme’s new value, after which that email follows the theme for that property.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

themeId
string
required

The ID of the theme.

Body

application/json

At least one of name or styles must be provided.

name
string
styles
object

Flat map of style attributes, matching the attribute names accepted by the LMX <Style /> tag.

Response

Successful.

id
string
required

The ID of the theme.

name
string
required

The name of the theme.

styles
object
required

Flat map of style attributes, matching the attribute names accepted by the LMX <Style /> tag.

isDefault
boolean
required

Whether this theme is the team's default.

createdAt
string
required

ISO 8601 timestamp for when the theme was created.

updatedAt
string
required

ISO 8601 timestamp for when the theme was last updated.

affectedEmailCount
number
required

The number of emails using this theme that are affected by the style change. 0 when only the name changed.

Last modified on July 20, 2026