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": "6b3d4c86-6ef6-4f4e-83f1-438453b9cae9",
    "type": "incident_form_field_selections",
    "attributes": {
      "incident_id": "3ca5a236-3b66-4c81-8760-0515a989fc77",
      "custom_field_id": 50,
      "form_field_id": "2746293f-9025-4de0-b32a-cbc02cf6466a",
      "form_field": {
        "id": "2746293f-9025-4de0-b32a-cbc02cf6466a",
        "team_id": 151,
        "slug": "est-dolorem-non-aut",
        "kind": "custom",
        "input_kind": "text",
        "value_kind": "inherit",
        "value_kind_catalog_id": null,
        "name": "Est dolorem non aut.",
        "description": "Et optio officiis veniam.",
        "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-04-18T18:19:13.797-07:00",
        "created_at": "2025-04-18T18:19:13.797-07:00",
        "options": [
          {
            "id": "e2da3273-de00-4a74-bf61-8146da58f70b",
            "form_field_id": "2746293f-9025-4de0-b32a-cbc02cf6466a",
            "value": "Vel est distinctio nam.",
            "color": "#FBE4A0",
            "default": false,
            "position": 1,
            "updated_at": "2025-04-18T18:19:13.883-07:00",
            "created_at": "2025-04-18T18:19:13.883-07:00"
          },
          {
            "id": "a3316107-6f88-4e96-aad3-209984dca37c",
            "form_field_id": "2746293f-9025-4de0-b32a-cbc02cf6466a",
            "value": "Corrupti odio perferendis harum.",
            "color": "#FBE4A0",
            "default": false,
            "position": 2,
            "updated_at": "2025-04-18T18:19:13.888-07:00",
            "created_at": "2025-04-18T18:19:13.888-07:00"
          }
        ],
        "positions": [
          {
            "id": "005884fc-dedd-408c-8f80-c2bf2ee8819a",
            "form_field_id": "2746293f-9025-4de0-b32a-cbc02cf6466a",
            "form": "slack_new_incident_form",
            "position": 2
          },
          {
            "id": "1d3f7111-a0aa-4781-b3a6-c91103e055bc",
            "form_field_id": "2746293f-9025-4de0-b32a-cbc02cf6466a",
            "form": "web_update_incident_form",
            "position": 2
          },
          {
            "id": "1bd56b2f-0cc2-45d7-8b14-0bfe82646f26",
            "form_field_id": "2746293f-9025-4de0-b32a-cbc02cf6466a",
            "form": "slack_update_incident_form",
            "position": 2
          },
          {
            "id": "c071e2b6-1505-4ac5-a015-dd80966ba30e",
            "form_field_id": "2746293f-9025-4de0-b32a-cbc02cf6466a",
            "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

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