Creates a new form_field_option from provided data
curl --request POST \
--url https://api.rootly.com/v1/form_fields/{form_field_id}/options \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "form_field_options",
"attributes": {
"form_field_id": "<string>",
"value": "<string>",
"color": "<string>",
"default": true,
"position": 123
}
}
}'
{
"data": {
"id": "5133557c-59de-439d-984b-8c71aac2880f",
"type": "form_field_options",
"attributes": {
"form_field_id": "26470068-e347-4967-98c3-51beeb625d6d",
"value": "Test option value",
"color": "#FBE4A0",
"default": false,
"position": 1,
"updated_at": "2025-08-02T12:36:26.672-07:00",
"created_at": "2025-08-02T12:36:26.672-07:00"
},
"relationships": {
"form_field": {
"data": {
"id": "26470068-e347-4967-98c3-51beeb625d6d",
"type": "form_fields"
}
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
form_field_option created
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/form_fields/{form_field_id}/options \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "form_field_options",
"attributes": {
"form_field_id": "<string>",
"value": "<string>",
"color": "<string>",
"default": true,
"position": 123
}
}
}'
{
"data": {
"id": "5133557c-59de-439d-984b-8c71aac2880f",
"type": "form_field_options",
"attributes": {
"form_field_id": "26470068-e347-4967-98c3-51beeb625d6d",
"value": "Test option value",
"color": "#FBE4A0",
"default": false,
"position": 1,
"updated_at": "2025-08-02T12:36:26.672-07:00",
"created_at": "2025-08-02T12:36:26.672-07:00"
},
"relationships": {
"form_field": {
"data": {
"id": "26470068-e347-4967-98c3-51beeb625d6d",
"type": "form_fields"
}
}
}
}
}