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": "63f535c6-2295-4e66-a78b-cb0c3de044c5",
    "type": "incident_form_field_selections",
    "attributes": {
      "incident_id": "532f9d9f-2cd7-4f57-8453-b2325266505a",
      "custom_field_id": 177,
      "form_field_id": "96d55f59-58cf-4865-b77e-3d308e631818",
      "form_field": {
        "id": "96d55f59-58cf-4865-b77e-3d308e631818",
        "team_id": 257,
        "slug": "ipsam-adipisci-ipsa-velit",
        "kind": "custom",
        "input_kind": "text",
        "value_kind": "inherit",
        "value_kind_catalog_id": null,
        "name": "Ipsam adipisci ipsa velit.",
        "description": "Rerum non sed optio.",
        "shown": [
          "web_new_incident_form",
          "web_update_incident_form"
        ],
        "required": [],
        "default_values": [],
        "show_on_incident_details": true,
        "enabled": true,
        "updated_at": "2025-12-10T19:50:12.305-08:00",
        "created_at": "2025-12-10T19:50:12.305-08:00",
        "options": [
          {
            "id": "7fe3115c-0abe-44ac-9226-b612ce5aeba0",
            "form_field_id": "96d55f59-58cf-4865-b77e-3d308e631818",
            "value": "Ex suscipit vero quia.",
            "color": "#FBE4A0",
            "default": false,
            "position": 1,
            "updated_at": "2025-12-10T19:50:12.332-08:00",
            "created_at": "2025-12-10T19:50:12.332-08:00"
          },
          {
            "id": "4c737faf-f749-4cf7-94ad-cace0ee1e46a",
            "form_field_id": "96d55f59-58cf-4865-b77e-3d308e631818",
            "value": "Totam explicabo repellendus veniam.",
            "color": "#FBE4A0",
            "default": false,
            "position": 2,
            "updated_at": "2025-12-10T19:50:12.335-08:00",
            "created_at": "2025-12-10T19:50:12.335-08:00"
          }
        ],
        "positions": [
          {
            "id": "911063d4-58de-4e9c-8fa7-3b894de097a9",
            "form_field_id": "96d55f59-58cf-4865-b77e-3d308e631818",
            "form": "web_update_incident_form",
            "position": 2
          },
          {
            "id": "8d4d2038-c912-461a-9693-fb497583cd2d",
            "form_field_id": "96d55f59-58cf-4865-b77e-3d308e631818",
            "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