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": "77d954d5-8dd8-43ae-8350-d57927f85606",
    "type": "incident_form_field_selections",
    "attributes": {
      "incident_id": "c6926a06-858b-44b2-ac35-cbe8d455aba8",
      "custom_field_id": 50,
      "form_field_id": "c298a6c6-cd01-4049-b86a-36c335a73c49",
      "form_field": {
        "id": "c298a6c6-cd01-4049-b86a-36c335a73c49",
        "team_id": 151,
        "slug": "doloremque-molestiae-voluptatem-pariatur",
        "kind": "custom",
        "input_kind": "text",
        "value_kind": "inherit",
        "value_kind_catalog_id": null,
        "name": "Doloremque molestiae voluptatem pariatur.",
        "description": "Est nam voluptatem sunt.",
        "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-29T17:44:21.609-07:00",
        "created_at": "2025-05-29T17:44:21.609-07:00",
        "options": [
          {
            "id": "644f9ab9-e218-4f4f-8d05-08d199086f15",
            "form_field_id": "c298a6c6-cd01-4049-b86a-36c335a73c49",
            "value": "Modi nostrum necessitatibus quidem.",
            "color": "#FBE4A0",
            "default": false,
            "position": 1,
            "updated_at": "2025-05-29T17:44:21.691-07:00",
            "created_at": "2025-05-29T17:44:21.691-07:00"
          },
          {
            "id": "8f8c7d31-4c1c-47e2-b86e-45e7f1a0d42d",
            "form_field_id": "c298a6c6-cd01-4049-b86a-36c335a73c49",
            "value": "Est suscipit incidunt amet.",
            "color": "#FBE4A0",
            "default": false,
            "position": 2,
            "updated_at": "2025-05-29T17:44:21.695-07:00",
            "created_at": "2025-05-29T17:44:21.695-07:00"
          }
        ],
        "positions": [
          {
            "id": "c8c822a6-f042-4f20-881a-f351c9f7ecd8",
            "form_field_id": "c298a6c6-cd01-4049-b86a-36c335a73c49",
            "form": "slack_new_incident_form",
            "position": 2
          },
          {
            "id": "296402d5-c9e2-41af-81f2-43210cf897eb",
            "form_field_id": "c298a6c6-cd01-4049-b86a-36c335a73c49",
            "form": "web_update_incident_form",
            "position": 2
          },
          {
            "id": "2d0ce144-20ee-4dcc-8d23-15950682cab7",
            "form_field_id": "c298a6c6-cd01-4049-b86a-36c335a73c49",
            "form": "slack_update_incident_form",
            "position": 2
          },
          {
            "id": "93c4f4b7-bd05-4cec-878b-507dcff1d6c1",
            "form_field_id": "c298a6c6-cd01-4049-b86a-36c335a73c49",
            "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.