POST
/
v1
/
form_fields
curl --request POST \
  --url https://api.rootly.com/v1/form_fields \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "form_fields",
    "attributes": {
      "kind": "custom",
      "input_kind": "text",
      "value_kind": "inherit",
      "value_kind_catalog_id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "shown": [
        "<string>"
      ],
      "required": [
        "<string>"
      ],
      "show_on_incident_details": true,
      "enabled": true,
      "default_values": [
        "<string>"
      ]
    }
  }
}'
{
  "data": {
    "id": "55905dc8-0f22-4639-9499-ff6fab30a907",
    "type": "form_fields",
    "attributes": {
      "team_id": 89,
      "slug": "test-custom-field",
      "kind": "custom",
      "input_kind": "text",
      "value_kind": "inherit",
      "value_kind_catalog_id": null,
      "name": "Test custom field",
      "description": null,
      "shown": [
        "web_new_incident_form",
        "slack_new_incident_form"
      ],
      "required": [],
      "default_values": [],
      "show_on_incident_details": true,
      "enabled": true,
      "updated_at": "2025-04-18T09:46:45.599-07:00",
      "created_at": "2025-04-18T09:46:45.599-07:00"
    },
    "relationships": {
      "options": {
        "data": []
      },
      "positions": {
        "data": [
          {
            "id": "fc0bc5a1-8bc9-48a6-a8b4-b2891e4a90ee",
            "type": "form_field_positions"
          },
          {
            "id": "a091893d-43db-48de-a02a-f4a3d6c42806",
            "type": "form_field_positions"
          }
        ]
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
form_field created
data
object
required