POST
/
v1
/
workflows
/
{workflow_id}
/
workflow_tasks
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": "c860b573-fb33-45ac-9ff3-6357d72144e3",
    "type": "workflow_tasks",
    "attributes": {
      "workflow_id": "edf9bbb2-8ccf-4498-b97a-37e4208aff3d",
      "task_params": {
        "task_type": "send_email",
        "from": "Rootly <no-reply@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-03-19T07:50:18.319-07:00",
      "updated_at": "2025-03-19T07:50:18.319-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

workflow_id
string
required

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
workflow task created
data
object
required