This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates the email content of an automation's send email action.
The content is replaced in full, and is live for subsequent runs of the automation once the
call returns. Replaced in full means anything left out of content is cleared, so omitting the
preview text or a default placeholder value removes it rather than keeping what was stored. The
one exception is editorType, which describes the content type rather than being part of it.
This operation doesn't preserve drafts: after the update, the message and every existing draft translation are published and become live.
There's no revision to pass and no concurrency check: the last write wins, and two callers updating the same email at once will silently overwrite one another.
The most reliable way to update content is to first retrieve it with Get Email Content
and modify the result, rather than building content from scratch. composer.composerDataJson is a
proprietary structure, and an invalid value can prevent the content from being previewed or sent.
You can only call this method when authenticated as a Wix app or Wix user identity.
There are 3 errors with this status code.
There is 1 error with this status code.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.