PUT
/
v1
/
workflow_tasks
/
{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": "8ca98398-ab08-4f8a-a1ff-f8fb479693e1",
    "type": "workflow_tasks",
    "attributes": {
      "workflow_id": "2c5a90fb-a820-4450-82c0-6d0ff6ad71d7",
      "task_params": {
        "task_type": "send_email",
        "from": "Rootly <workflows@rootly.com>",
        "to": [
          "velit"
        ],
        "cc": [],
        "bcc": [],
        "subject": "Debitis ipsam rem similique.",
        "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-03-26T23:19:55.566-07:00",
      "updated_at": "2025-03-26T23:19:57.224-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/vnd.api+json
data
object
required

Response

200
application/vnd.api+json
workflow_task updated
data
object
required