Migrate a marketing email trigger into a single-node automation
Requires ADMIN. Only single-step marketing triggers convert; transactional triggers are rejected 400. Fails closed (422) when the trigger matchJson cannot be losslessly mapped to an equivalent entry condition. On success the source trigger is disabled and a draft automation is created.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project (tenant) identifier. Row-level tenant isolation is enforced on every query.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "triggerId": "example"}Responses
Section titled “Responses”Created draft automation with source-trigger provenance.
object
A journey row surfaced as an automation.
object
Trigger is not marketing category (error=not_marketing) or missing projectId.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Not authenticated (401 via requireAuthenticated) or insufficient project role (403).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Resource not found (or cross-tenant — same 404).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Param validation failed, generated definition invalid, or match not convertible (error in [definition_invalid, match_not_convertible]).
object
object
Examplegenerated
{ "error": "example", "message": "example", "errors": [ "example" ], "issues": [ {} ], "draftId": "example"}