You can control a workflow directly from the REST API, through a POST request containing the workflow ID and the required execution command:
POST https://mc.adobe.io/<ORGANIZATION>/campaign/workflow/execution/<workflowID>/commands
If the worfklow ID is changed in Adobe Campaign, the API request will not work anymore.
Four execution commands are available to control a workflow:
For more information on the execution commands, refer to the Campaign documentation.
Sample requests
Start a workflow.
-X POST https://mc.adobe.io/<ORGANIZATION>/campaign/workflow/execution/<workflowID>/commands \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>' \
-i
-d '{"method":"start"}'
Stop a workflow.
-X POST https://mc.adobe.io/<ORGANIZATION>/campaign/workflow/execution/<workflowID>/commands \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>' \
-i
-d '{"method":"stop"}'