v7
latestOpenAPI 3.1.02026-08-0664219301.2 KBWorkflows
Change workflow mailing list
Dry run or apply a workflow mailing list change. If queued contacts would be removed from the workflow due to the change of mailing list, Loops returns with "status": "queuedContactsFound" instead of applying the change. Retry with queuedContactPolicy: "discard" to apply the change and discard those contacts. Confirmed update responses include the simplified workflow after the mailing list changes.
post/v1/workflows/{workflowId}/mailing-list
Request body
Response
Mailing-list dry run, queued-contact warning, or update result. Confirmed update responses include the simplified workflow after the mailing list changes.
Example response
{
"workflow": {
"id": "clw1a3b5c7d9e1f3g5h7i9j1",
"status": "Draft",
"name": "Welcome series",
"description": "Onboarding emails for new signups",
"mailingListId": "clm2k8j4h6g0f8d6s4a2b0z8",
"rootNodeId": "cln8p0q2r4s6t8u0v2w4x6z8",
"nodes": {
"cln8p0q2r4s6t8u0v2w4x6z8": {
"typeName": "SignupTrigger",
"nextNodeIds": [
"cln1a3b5c7d9e1f3g5h7i9j1"
]
},
"cln1a3b5c7d9e1f3g5h7i9j1": {
"typeName": "SendEmailAction",
"nextNodeIds": [],
"emailMessageId": "cle5f7g9h1i3j5k7l9m1n3p5",
"subject": "Welcome to Acme!"
}
}
}
}