Workflows

Add a workflow action

Adds a workflow action. Actions determine what the workflow will do when it is triggered.

post/workflows/{workflowId}/actions

Request

Path parameters

workflowIdstring required

The workflow identifier

Request body

typestring required

Example request

{
  "type": "webhook",
  "url": "https://example.com/webhooks",
  "headers": {
    "Authorization": "<AUTHORIZATION_UUID>"
  }
}

Response

Workflow action added successfully

idstring

The workflow action identifier

Example response

{
  "id": "wfa_wlu3wxc26jounofs5iez75qaqa",
  "_links": {
    "self": {
      "href": "https://{prefix}.api.checkout.com/workflows/wf_wlu3wxc26jounofs5iez75qaqa/actions/wfa_wlu3wxc26jounofs5iez75qaqa"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.