POST
/
v1
/
form_fields
/
{form_field_id}
/
options
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": "cedc0eab-0f5b-48dd-a217-0566668461ca",
    "type": "form_field_options",
    "attributes": {
      "form_field_id": "a0801780-4c8c-4335-96dc-dc026dd5c787",
      "value": "Test option value",
      "color": "#FBE4A0",
      "default": false,
      "position": 1,
      "updated_at": "2025-05-08T00:18:11.701-07:00",
      "created_at": "2025-05-08T00:18:11.701-07:00"
    },
    "relationships": {
      "form_field": {
        "data": {
          "id": "a0801780-4c8c-4335-96dc-dc026dd5c787",
          "type": "form_fields"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

form_field_id
string
required

Body

application/vnd.api+json

Response

201
application/vnd.api+json
form_field_option created

The response is of type object.