Skip to main content
POST
/
v1
/
incidents
/
{incident_id}
/
form_field_selections
Creates an incident form field selection
curl --request POST \
  --url https://api.rootly.com/v1/incidents/{incident_id}/form_field_selections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "incident_form_field_selections",
    "attributes": {
      "incident_id": "<string>",
      "form_field_id": "<string>",
      "value": "<string>",
      "selected_catalog_entity_ids": [
        "<string>"
      ],
      "selected_group_ids": [
        "<string>"
      ],
      "selected_option_ids": [
        "<string>"
      ],
      "selected_service_ids": [
        "<string>"
      ],
      "selected_functionality_ids": [
        "<string>"
      ],
      "selected_user_ids": [
        123
      ]
    }
  }
}'
{
  "data": {
    "id": "386994c8-a414-4c8c-9c06-034b4e6630fd",
    "type": "incident_form_field_selections",
    "attributes": {
      "incident_id": "67d4091e-a098-444a-8d1a-534ff6a02b15",
      "custom_field_id": 177,
      "form_field_id": "e4045681-8e39-4406-a41f-0c8848045236",
      "form_field": {
        "id": "e4045681-8e39-4406-a41f-0c8848045236",
        "team_id": 248,
        "slug": "sunt-perferendis-consequatur-odit",
        "kind": "custom",
        "input_kind": "text",
        "value_kind": "inherit",
        "value_kind_catalog_id": null,
        "name": "Sunt perferendis consequatur odit.",
        "description": "Consequuntur et saepe quo.",
        "shown": [
          "web_new_incident_form",
          "web_update_incident_form"
        ],
        "required": [],
        "default_values": [],
        "show_on_incident_details": true,
        "enabled": true,
        "updated_at": "2025-10-29T14:45:05.862-07:00",
        "created_at": "2025-10-29T14:45:05.862-07:00",
        "options": [
          {
            "id": "bbf6310b-2ad2-4f60-8cf0-d0a3cca277c6",
            "form_field_id": "e4045681-8e39-4406-a41f-0c8848045236",
            "value": "Accusamus voluptatem voluptas explicabo.",
            "color": "#FBE4A0",
            "default": false,
            "position": 1,
            "updated_at": "2025-10-29T14:45:05.895-07:00",
            "created_at": "2025-10-29T14:45:05.895-07:00"
          },
          {
            "id": "601a1986-7ff7-44dd-a975-eaae5b012ad9",
            "form_field_id": "e4045681-8e39-4406-a41f-0c8848045236",
            "value": "Eius aut cumque accusantium.",
            "color": "#FBE4A0",
            "default": false,
            "position": 2,
            "updated_at": "2025-10-29T14:45:05.899-07:00",
            "created_at": "2025-10-29T14:45:05.899-07:00"
          }
        ],
        "positions": [
          {
            "id": "a175613f-1da5-4245-9bfd-996794115982",
            "form_field_id": "e4045681-8e39-4406-a41f-0c8848045236",
            "form": "web_update_incident_form",
            "position": 2
          },
          {
            "id": "6489daa3-bbf6-4c7c-9e5f-c746b788848c",
            "form_field_id": "e4045681-8e39-4406-a41f-0c8848045236",
            "form": "web_new_incident_form",
            "position": 2
          }
        ]
      },
      "value": "Test custom field",
      "selected_group_ids": [],
      "selected_groups": {
        "id": null,
        "value": "Test custom field"
      },
      "selected_option_ids": [],
      "selected_options": {
        "id": null,
        "value": "Test custom field"
      },
      "selected_service_ids": [],
      "selected_services": {
        "id": null,
        "value": "Test custom field"
      },
      "selected_functionality_ids": [],
      "selected_functionalities": {
        "id": null,
        "value": "Test custom field"
      },
      "selected_catalog_entity_ids": [],
      "selected_catalog_entities": {
        "id": null,
        "value": "Test custom field"
      },
      "selected_user_ids": [],
      "selected_users": {
        "id": null,
        "value": "Test custom field"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

incident_id
string
required

Body

application/vnd.api+json
data
object
required

Response

incident_form_field_selection created

data
object
required