Creates a new incident form field selection from provided data
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": "232b1338-9b32-4739-bf71-c4eec38843e1",
"type": "incident_form_field_selections",
"attributes": {
"incident_id": "755b9417-b384-4ed7-864e-e38a577470f4",
"custom_field_id": 177,
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"form_field": {
"id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"team_id": 190,
"slug": "incidunt-illo-quis-repellat",
"kind": "custom",
"input_kind": "text",
"value_kind": "inherit",
"value_kind_catalog_id": null,
"name": "Incidunt illo quis repellat.",
"description": "Laudantium nulla vel accusamus.",
"shown": [
"web_new_incident_form",
"web_update_incident_form"
],
"required": [],
"default_values": [],
"show_on_incident_details": true,
"enabled": true,
"updated_at": "2025-08-26T21:13:58.949-07:00",
"created_at": "2025-08-26T21:13:58.949-07:00",
"options": [
{
"id": "4aa584e1-0756-4c35-ae45-85c59818ff0b",
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"value": "Dicta et eius fugit.",
"color": "#FBE4A0",
"default": false,
"position": 1,
"updated_at": "2025-08-26T21:13:58.975-07:00",
"created_at": "2025-08-26T21:13:58.975-07:00"
},
{
"id": "ae72796e-7d02-434d-b612-d291334b02e8",
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"value": "Est eaque delectus ipsa.",
"color": "#FBE4A0",
"default": false,
"position": 2,
"updated_at": "2025-08-26T21:13:58.978-07:00",
"created_at": "2025-08-26T21:13:58.978-07:00"
}
],
"positions": [
{
"id": "f6b8bac9-934f-416c-8316-a8d8502e3b9f",
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"form": "web_update_incident_form",
"position": 2
},
{
"id": "e4046c09-5772-41b0-aba3-105f070baeb4",
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"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"
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
incident_form_field_selection created
The response is of type object
.
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": "232b1338-9b32-4739-bf71-c4eec38843e1",
"type": "incident_form_field_selections",
"attributes": {
"incident_id": "755b9417-b384-4ed7-864e-e38a577470f4",
"custom_field_id": 177,
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"form_field": {
"id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"team_id": 190,
"slug": "incidunt-illo-quis-repellat",
"kind": "custom",
"input_kind": "text",
"value_kind": "inherit",
"value_kind_catalog_id": null,
"name": "Incidunt illo quis repellat.",
"description": "Laudantium nulla vel accusamus.",
"shown": [
"web_new_incident_form",
"web_update_incident_form"
],
"required": [],
"default_values": [],
"show_on_incident_details": true,
"enabled": true,
"updated_at": "2025-08-26T21:13:58.949-07:00",
"created_at": "2025-08-26T21:13:58.949-07:00",
"options": [
{
"id": "4aa584e1-0756-4c35-ae45-85c59818ff0b",
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"value": "Dicta et eius fugit.",
"color": "#FBE4A0",
"default": false,
"position": 1,
"updated_at": "2025-08-26T21:13:58.975-07:00",
"created_at": "2025-08-26T21:13:58.975-07:00"
},
{
"id": "ae72796e-7d02-434d-b612-d291334b02e8",
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"value": "Est eaque delectus ipsa.",
"color": "#FBE4A0",
"default": false,
"position": 2,
"updated_at": "2025-08-26T21:13:58.978-07:00",
"created_at": "2025-08-26T21:13:58.978-07:00"
}
],
"positions": [
{
"id": "f6b8bac9-934f-416c-8316-a8d8502e3b9f",
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"form": "web_update_incident_form",
"position": 2
},
{
"id": "e4046c09-5772-41b0-aba3-105f070baeb4",
"form_field_id": "7d46541b-56ad-4b44-81a4-c2552e099b41",
"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"
}
}
}
}