Skip to navigation

Update email template

Update a TRIGGER or LAYOUT email template identified by id for the organization specified in organization_id. Authenticate with the House of Apps AI key (House-Of-Apps-Ai-Key). Variables use the same full-list shape as create.

Headers

House-Of-Apps-Ai-KeystringRequired
House of Apps AI integration API key

Request

This endpoint expects an object.
idstringRequired>=1 character
Email template UUID
organization_idstringRequired>=1 character
Target organization UUID
namestring or nullOptional1-200 characters
subjectstring or nullOptional<=500 characters

Plain email subject line (no variable placeholders)

html_contentstring or nullOptional>=1 character
variableslist of objects or nullOptional

Full variable tree replacement (same shape as create)

statusenum or nullOptional

Email template publish state (enforced in API; stored as text in DB).

Allowed values:
is_defaultboolean or nullOptional
When true on a LAYOUT, marks the org default shell used by TRIGGER render

Response

OK
statusstring
Response status
messagestring

Human-readable success message

statusCodeinteger
HTTP status code
codestring
Custom application status code
datamap from strings to any or list of any or string or double or boolean or nullOptional
Payload for this endpoint

Errors

422
Unprocessable Entity Error