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": "104fb095-438f-477d-86ee-98e001229ba2",
"type": "form_field_options",
"attributes": {
"form_field_id": "8a501e68-b5e3-4662-8185-11bf2e2e878b",
"value": "Test option value",
"color": "#FBE4A0",
"default": false,
"position": 1,
"updated_at": "2025-12-17T11:51:15.848-08:00",
"created_at": "2025-12-17T11:51:15.848-08:00"
},
"relationships": {
"form_field": {
"data": {
"id": "8a501e68-b5e3-4662-8185-11bf2e2e878b",
"type": "form_fields"
}
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
form_field_option created
Show child attributes
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": "104fb095-438f-477d-86ee-98e001229ba2",
"type": "form_field_options",
"attributes": {
"form_field_id": "8a501e68-b5e3-4662-8185-11bf2e2e878b",
"value": "Test option value",
"color": "#FBE4A0",
"default": false,
"position": 1,
"updated_at": "2025-12-17T11:51:15.848-08:00",
"created_at": "2025-12-17T11:51:15.848-08:00"
},
"relationships": {
"form_field": {
"data": {
"id": "8a501e68-b5e3-4662-8185-11bf2e2e878b",
"type": "form_fields"
}
}
}
}
}