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": {
"task_type": "add_action_item",
"attribute_to_query_by": "jira_issue_id",
"query_value": "<string>",
"incident_role_id": "<string>",
"assigned_to_user_id": "<string>",
"assigned_to_user": {
"id": "<string>",
"name": "<string>"
},
"priority": "high",
"kind": "<string>",
"summary": "<string>",
"description": "<string>",
"status": "open",
"post_to_incident_timeline": true,
"custom_fields_mapping": "<string>",
"post_to_slack_channels": [
{
"id": "<string>",
"name": "<string>"
}
]
}
}
}
}'
{
"data": {
"id": "5b9726c6-48d7-423d-af31-6383dcf66cbe",
"type": "workflow_tasks",
"attributes": {
"workflow_id": "43ca532a-d340-463a-85ce-fde1c8654450",
"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-07-05T07:42:31.336-07:00",
"updated_at": "2025-07-05T07:42:31.336-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": {
"task_type": "add_action_item",
"attribute_to_query_by": "jira_issue_id",
"query_value": "<string>",
"incident_role_id": "<string>",
"assigned_to_user_id": "<string>",
"assigned_to_user": {
"id": "<string>",
"name": "<string>"
},
"priority": "high",
"kind": "<string>",
"summary": "<string>",
"description": "<string>",
"status": "open",
"post_to_incident_timeline": true,
"custom_fields_mapping": "<string>",
"post_to_slack_channels": [
{
"id": "<string>",
"name": "<string>"
}
]
}
}
}
}'
{
"data": {
"id": "5b9726c6-48d7-423d-af31-6383dcf66cbe",
"type": "workflow_tasks",
"attributes": {
"workflow_id": "43ca532a-d340-463a-85ce-fde1c8654450",
"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-07-05T07:42:31.336-07:00",
"updated_at": "2025-07-05T07:42:31.336-07:00"
}
}
}