Creates a new workflow task from provided data
curl --request POST \
--url https://api.rootly.com/v1/workflows/{workflow_id}/workflow_tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "workflow_tasks",
"attributes": {
"name": "<string>",
"position": 123,
"skip_on_failure": true,
"enabled": true,
"task_params": "<any>"
}
}
}'
{
"data": {
"id": "9b016abd-f536-40aa-b396-1d9e9880c626",
"type": "workflow_tasks",
"attributes": {
"workflow_id": "00bfc166-b982-4554-9972-df0ecbcf0fca",
"task_params": {
"task_type": "send_email",
"from": "Rootly <workflows@rootly.com>",
"to": [
"test@example.com"
],
"cc": [],
"bcc": [],
"subject": "Hello from Rootly",
"preheader": null,
"body": "Hello from Rootly",
"include_header": true,
"include_footer": true,
"custom_logo_url": null
},
"name": "My Custom Name",
"position": 2,
"skip_on_failure": false,
"enabled": true,
"created_at": "2025-09-04T12:38:29.735-07:00",
"updated_at": "2025-09-04T12:38:29.735-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
workflow task created
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/workflows/{workflow_id}/workflow_tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "workflow_tasks",
"attributes": {
"name": "<string>",
"position": 123,
"skip_on_failure": true,
"enabled": true,
"task_params": "<any>"
}
}
}'
{
"data": {
"id": "9b016abd-f536-40aa-b396-1d9e9880c626",
"type": "workflow_tasks",
"attributes": {
"workflow_id": "00bfc166-b982-4554-9972-df0ecbcf0fca",
"task_params": {
"task_type": "send_email",
"from": "Rootly <workflows@rootly.com>",
"to": [
"test@example.com"
],
"cc": [],
"bcc": [],
"subject": "Hello from Rootly",
"preheader": null,
"body": "Hello from Rootly",
"include_header": true,
"include_footer": true,
"custom_logo_url": null
},
"name": "My Custom Name",
"position": 2,
"skip_on_failure": false,
"enabled": true,
"created_at": "2025-09-04T12:38:29.735-07:00",
"updated_at": "2025-09-04T12:38:29.735-07:00"
}
}
}