Skip to content

Workflow Web Request Actions

List of valid attributes:

AttributeDescriptionSpecifics
bodyBody content of the requestOptional. Supports liquid templates
created_atTimestamp of creationCannot be set
headerHTTP headers to include in the requestOptional object where all values are strings.
methodHTTP method used for the requestRequired. Allowed methods: “get”, “post”, “put”, “patch”, “delete”
urlTarget URL for the requestRequired.

Create

Example request:

{
"data": {
"type": "workflow_web_request_action",
"attributes": {
"method": "get",
"url": "https://example.com"
}
}
}

Example response:

{
"data": {
"id": "85579c3b-22ea-43b8-ab79-d60d05680be5",
"type": "workflow_web_request_action",
"attributes": {
...
}
}
}

This endpoint creates a new web request action for a workflow.

HTTP Request

POST /api/v1/workflows/:workflow_id/web_request_actions

URL Parameters

ParameterDescription
workflow_idThe ID of the workflow that the action belongs to

Update

Example request:

{
"data": {
"type": "workflow_web_request_action",
"attributes": {
"method": "post"
}
}
}

Example response:

{
"data": {
"id": "85579c3b-22ea-43b8-ab79-d60d05680be5",
"type": "workflow_web_request_action",
"attributes": {
...
}
}
}

This endpoint updates a web request action.

HTTP Request

PUT /api/v1/workflows/:workflow_id/web_request_actions/:web_request_action_id

URL Parameters

ParameterDescription
web_request_action_idThe ID of the web request action to update
workflow_idThe ID of the workflow that the action belongs to