[有限可用性]{class="badge informative" title="仅限于Campaign Standard已迁移的用户"}

控制工作流 controlling-a-workflow

您可以通过包含工作流ID和所需执行命令的POST请求,直接从REST API控制工作流:

POST https://mc.adobe.io/<ORGANIZATION>/campaign/workflow/execution/<workflowID>/commands

CAUTION
如果在Adobe Campaign中更改了工作流ID,则API请求将不再有效。

有四个执行命令可用于控制工作流:

  • 开始
  • 暂停
  • 继续
  • 停止

有关执行命令的详细信息,请参阅Campaign文档

示例请求

  • 启动工作流。

    code language-none
    -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"}'
    
  • 停止工作流。

    code language-none
    -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"}'
    
recommendation-more-help
7167b251-0f24-48cd-a4e0-234fe2acbdea