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": "82876b18-bebd-4ada-a0c1-2a7029999f35",
    "type": "incident_form_field_selections",
    "attributes": {
      "incident_id": "ec4b46a1-828b-43e2-b29c-324c029fcfba",
      "custom_field_id": 50,
      "form_field_id": "2a55f8d7-2a86-4fa5-b1ad-f94bc4f26bec",
      "form_field": {
        "id": "2a55f8d7-2a86-4fa5-b1ad-f94bc4f26bec",
        "team_id": 151,
        "slug": "fugiat-in-ipsam-quisquam",
        "kind": "custom",
        "input_kind": "text",
        "value_kind": "inherit",
        "value_kind_catalog_id": null,
        "name": "Fugiat in ipsam quisquam.",
        "description": "Expedita vero saepe ut.",
        "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-05-08T00:20:35.257-07:00",
        "created_at": "2025-05-08T00:20:35.257-07:00",
        "options": [
          {
            "id": "02321ae0-c57f-434b-a136-27044abd5cb7",
            "form_field_id": "2a55f8d7-2a86-4fa5-b1ad-f94bc4f26bec",
            "value": "Qui sed cumque aut.",
            "color": "#FBE4A0",
            "default": false,
            "position": 1,
            "updated_at": "2025-05-08T00:20:35.333-07:00",
            "created_at": "2025-05-08T00:20:35.333-07:00"
          },
          {
            "id": "a5c74018-fb7b-4760-8268-0945ec8851de",
            "form_field_id": "2a55f8d7-2a86-4fa5-b1ad-f94bc4f26bec",
            "value": "Aspernatur nesciunt dolor quia.",
            "color": "#FBE4A0",
            "default": false,
            "position": 2,
            "updated_at": "2025-05-08T00:20:35.338-07:00",
            "created_at": "2025-05-08T00:20:35.338-07:00"
          }
        ],
        "positions": [
          {
            "id": "98f13730-4654-43fc-afc6-cad57c40c5f1",
            "form_field_id": "2a55f8d7-2a86-4fa5-b1ad-f94bc4f26bec",
            "form": "slack_new_incident_form",
            "position": 2
          },
          {
            "id": "ac2facb8-d75d-4d4d-a7e8-162c272f7286",
            "form_field_id": "2a55f8d7-2a86-4fa5-b1ad-f94bc4f26bec",
            "form": "web_update_incident_form",
            "position": 2
          },
          {
            "id": "aa61976a-4656-46df-94c3-4073ea0ecc34",
            "form_field_id": "2a55f8d7-2a86-4fa5-b1ad-f94bc4f26bec",
            "form": "slack_update_incident_form",
            "position": 2
          },
          {
            "id": "16c807b4-a96a-48fa-9b11-a9abbb1eab4e",
            "form_field_id": "2a55f8d7-2a86-4fa5-b1ad-f94bc4f26bec",
            "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

Response

201
application/vnd.api+json
incident_form_field_selection created

The response is of type object.