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": "b82b2b4e-886a-47c7-822d-a2fd244ab780",
    "type": "incident_form_field_selections",
    "attributes": {
      "incident_id": "29dec28d-639c-4138-a7ce-f762ba7b997a",
      "custom_field_id": 177,
      "form_field_id": "cc6f1122-fca7-40e3-8791-c780422668e3",
      "form_field": {
        "id": "cc6f1122-fca7-40e3-8791-c780422668e3",
        "team_id": 250,
        "slug": "ad-labore-dignissimos-dolorem",
        "kind": "custom",
        "input_kind": "text",
        "value_kind": "inherit",
        "value_kind_catalog_id": null,
        "name": "Ad labore dignissimos dolorem.",
        "description": "Aut qui voluptatibus non.",
        "shown": [
          "web_new_incident_form",
          "web_update_incident_form"
        ],
        "required": [],
        "default_values": [],
        "show_on_incident_details": true,
        "enabled": true,
        "updated_at": "2025-11-20T15:54:02.831-08:00",
        "created_at": "2025-11-20T15:54:02.831-08:00",
        "options": [
          {
            "id": "aa18b96d-24ed-4dae-8a7c-e8ee0f0e7854",
            "form_field_id": "cc6f1122-fca7-40e3-8791-c780422668e3",
            "value": "Omnis magni eum dolorum.",
            "color": "#FBE4A0",
            "default": false,
            "position": 1,
            "updated_at": "2025-11-20T15:54:02.955-08:00",
            "created_at": "2025-11-20T15:54:02.955-08:00"
          },
          {
            "id": "2aebdead-aef8-4345-81b5-44dc345fc298",
            "form_field_id": "cc6f1122-fca7-40e3-8791-c780422668e3",
            "value": "Officiis qui quis veniam.",
            "color": "#FBE4A0",
            "default": false,
            "position": 2,
            "updated_at": "2025-11-20T15:54:02.961-08:00",
            "created_at": "2025-11-20T15:54:02.961-08:00"
          }
        ],
        "positions": [
          {
            "id": "e11b8564-8a32-49dd-9bb9-c43860eb02e9",
            "form_field_id": "cc6f1122-fca7-40e3-8791-c780422668e3",
            "form": "web_update_incident_form",
            "position": 2
          },
          {
            "id": "7105cc5a-5975-45a5-9fd4-ddaa67625bbb",
            "form_field_id": "cc6f1122-fca7-40e3-8791-c780422668e3",
            "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