Skip to main content
POST
/
v1
/
custom_field_options
Create
curl --request POST \
  --url https://api.incident.io/v1/custom_field_options \
  --header 'Content-Type: application/json' \
  --data '
{
  "custom_field_id": "01FCNDV6P870EA6S7TK1DSYDG0",
  "sort_key": 10,
  "value": "Product"
}
'
{
  "custom_field_option": {
    "custom_field_id": "01FCNDV6P870EA6S7TK1DSYDG0",
    "id": "01FCNDV6P870EA6S7TK1DSYDG0",
    "sort_key": 10,
    "value": "Product"
  }
}

Body

application/json
custom_field_id
string
required

ID of the custom field this option belongs to

Example:

"01FCNDV6P870EA6S7TK1DSYDG0"

value
string
required

Human readable name for the custom field option

Example:

"Product"

sort_key
integer<int64>
default:1000

Sort key used to order the custom field options correctly

Example:

10

Response

201 - application/json

Created response.

custom_field_option
object
required
Example:
{
"custom_field_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"sort_key": 10,
"value": "Product"
}