POST
/
v1
/
incidents
/
{incident_id}
/
form_field_selections
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": "44cf8f33-b12c-4853-acf1-cfe64006ebc2",
    "type": "incident_form_field_selections",
    "attributes": {
      "incident_id": "d8cf0c29-2646-44b3-93da-a9fb8c8171ea",
      "custom_field_id": 176,
      "form_field_id": "4ba596e2-6430-4cce-97c7-835700ae8645",
      "form_field": {
        "id": "4ba596e2-6430-4cce-97c7-835700ae8645",
        "team_id": 189,
        "slug": "quos-est-iusto-autem",
        "kind": "custom",
        "input_kind": "text",
        "value_kind": "inherit",
        "value_kind_catalog_id": null,
        "name": "Quos est iusto autem.",
        "description": "Recusandae fugiat aspernatur temporibus.",
        "shown": [
          "web_new_incident_form",
          "web_update_incident_form",
          "slack_new_incident_form",
          "slack_update_incident_form"
        ],
        "required": [],
        "default_values": [],
        "show_on_incident_details": true,
        "enabled": true,
        "updated_at": "2025-06-19T02:40:54.118-07:00",
        "created_at": "2025-06-19T02:40:54.118-07:00",
        "options": [
          {
            "id": "778a5a30-4790-4784-9481-9597c32fe3a2",
            "form_field_id": "4ba596e2-6430-4cce-97c7-835700ae8645",
            "value": "Velit qui perferendis et.",
            "color": "#FBE4A0",
            "default": false,
            "position": 1,
            "updated_at": "2025-06-19T02:40:54.160-07:00",
            "created_at": "2025-06-19T02:40:54.160-07:00"
          },
          {
            "id": "5e19db39-795b-44f5-89be-96a63750f848",
            "form_field_id": "4ba596e2-6430-4cce-97c7-835700ae8645",
            "value": "Magni tenetur molestiae reprehenderit.",
            "color": "#FBE4A0",
            "default": false,
            "position": 2,
            "updated_at": "2025-06-19T02:40:54.162-07:00",
            "created_at": "2025-06-19T02:40:54.162-07:00"
          }
        ],
        "positions": [
          {
            "id": "0f982b0b-62a4-44d3-bc08-281bbdd2fdaf",
            "form_field_id": "4ba596e2-6430-4cce-97c7-835700ae8645",
            "form": "web_new_incident_form",
            "position": 2
          },
          {
            "id": "61682e4b-875a-4915-a45b-46d2410aede6",
            "form_field_id": "4ba596e2-6430-4cce-97c7-835700ae8645",
            "form": "slack_new_incident_form",
            "position": 2
          },
          {
            "id": "1674c5b6-8828-4320-9d92-4fe59be3fcbd",
            "form_field_id": "4ba596e2-6430-4cce-97c7-835700ae8645",
            "form": "web_update_incident_form",
            "position": 2
          },
          {
            "id": "1a5a0073-b7b5-4096-a724-f19a2f56b783",
            "form_field_id": "4ba596e2-6430-4cce-97c7-835700ae8645",
            "form": "slack_update_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

Response

201
application/vnd.api+json

incident_form_field_selection created

The response is of type object.