Update a specific workflow task by id
curl --request PUT \
--url https://api.rootly.com/v1/workflow_tasks/{id} \
--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": "72bd322a-2159-488b-9ba7-941fa856af03",
"type": "workflow_tasks",
"attributes": {
"workflow_id": "f330065a-2abc-40da-b411-6ca15bdb478e",
"task_params": {
"task_type": "send_email",
"from": "Rootly <workflows@rootly.com>",
"to": [
"et"
],
"cc": [],
"bcc": [],
"subject": "Quam hic in doloremque.",
"preheader": null,
"body": "updated",
"include_header": true,
"include_footer": true,
"custom_logo_url": null
},
"name": "Another name",
"position": 2,
"skip_on_failure": true,
"enabled": false,
"created_at": "2025-07-22T16:13:20.438-07:00",
"updated_at": "2025-07-22T16:13:21.944-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
workflow_task updated
The response is of type object
.
Was this page helpful?
curl --request PUT \
--url https://api.rootly.com/v1/workflow_tasks/{id} \
--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": "72bd322a-2159-488b-9ba7-941fa856af03",
"type": "workflow_tasks",
"attributes": {
"workflow_id": "f330065a-2abc-40da-b411-6ca15bdb478e",
"task_params": {
"task_type": "send_email",
"from": "Rootly <workflows@rootly.com>",
"to": [
"et"
],
"cc": [],
"bcc": [],
"subject": "Quam hic in doloremque.",
"preheader": null,
"body": "updated",
"include_header": true,
"include_footer": true,
"custom_logo_url": null
},
"name": "Another name",
"position": 2,
"skip_on_failure": true,
"enabled": false,
"created_at": "2025-07-22T16:13:20.438-07:00",
"updated_at": "2025-07-22T16:13:21.944-07:00"
}
}
}