Skip to main content
POST
/
v1
/
custom_fields
[DEPRECATED] Creates a Custom Field
curl --request POST \
  --url https://api.rootly.com/v1/custom_fields \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "type": "custom_fields",
    "attributes": {
      "label": "<string>",
      "description": "<string>",
      "shown": [
        "incident_form"
      ],
      "required": [
        "incident_form"
      ],
      "default": "<string>",
      "position": 123
    }
  }
}
'
{
  "data": {
    "id": "<string>",
    "type": "custom_fields",
    "attributes": {
      "label": "<string>",
      "slug": "<string>",
      "shown": [
        "incident_form"
      ],
      "required": [
        "incident_form"
      ],
      "position": 123,
      "created_at": "<string>",
      "updated_at": "<string>",
      "kind": "<string>",
      "enabled": true,
      "description": "<string>",
      "default": "<string>"
    }
  }
}

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

custom_field created

data
object
required