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": "e974c62d-2f1b-4fe6-bef6-d7490017f580",
    "type": "incident_form_field_selections",
    "attributes": {
      "incident_id": "3e01db64-e022-4bf2-9809-5f798a6122b0",
      "custom_field_id": 32,
      "form_field_id": "f36bf640-e774-4a5e-a947-b2c4243f5bd2",
      "form_field": {
        "id": "f36bf640-e774-4a5e-a947-b2c4243f5bd2",
        "team_id": 198,
        "slug": "odio-mollitia-animi-ut",
        "kind": "custom",
        "input_kind": "text",
        "value_kind": "inherit",
        "value_kind_catalog_id": null,
        "name": "Odio mollitia animi ut.",
        "description": "Odit unde enim ipsam.",
        "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-03-19T17:39:42.001-07:00",
        "created_at": "2025-03-19T17:39:42.001-07:00",
        "options": [
          {
            "id": "ee7ab612-ef1d-4e45-afba-8703e58f53a8",
            "form_field_id": "f36bf640-e774-4a5e-a947-b2c4243f5bd2",
            "value": "Eveniet nulla consectetur ut.",
            "color": "#FBE4A0",
            "default": false,
            "position": 1,
            "updated_at": "2025-03-19T17:39:42.076-07:00",
            "created_at": "2025-03-19T17:39:42.076-07:00"
          },
          {
            "id": "e5059ff3-1143-4994-bd6b-0eda50607288",
            "form_field_id": "f36bf640-e774-4a5e-a947-b2c4243f5bd2",
            "value": "Voluptate a blanditiis sed.",
            "color": "#FBE4A0",
            "default": false,
            "position": 2,
            "updated_at": "2025-03-19T17:39:42.080-07:00",
            "created_at": "2025-03-19T17:39:42.080-07:00"
          }
        ],
        "positions": [
          {
            "id": "972d62e5-cbb7-4dd8-b925-ff7a3417bdd4",
            "form_field_id": "f36bf640-e774-4a5e-a947-b2c4243f5bd2",
            "form": "slack_new_incident_form",
            "position": 2
          },
          {
            "id": "cd36d181-2ef7-40c4-8543-b97b5e5667ac",
            "form_field_id": "f36bf640-e774-4a5e-a947-b2c4243f5bd2",
            "form": "web_update_incident_form",
            "position": 2
          },
          {
            "id": "d5d31781-3e7a-40be-bbf0-1a13cd91b9cc",
            "form_field_id": "f36bf640-e774-4a5e-a947-b2c4243f5bd2",
            "form": "slack_update_incident_form",
            "position": 2
          },
          {
            "id": "2e88fe53-b76d-4642-9a03-9a154df8e9f8",
            "form_field_id": "f36bf640-e774-4a5e-a947-b2c4243f5bd2",
            "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