POST
/
v1
/
alert_fields
curl --request POST \
  --url https://api.rootly.com/v1/alert_fields \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "alert_fields",
    "attributes": {
      "name": "<string>"
    }
  }
}'
{
  "data": {
    "id": "1f02a0fd-bb44-4aeb-8365-3c8d71d67e9a",
    "type": "alert_fields",
    "attributes": {
      "slug": "custom-field-test",
      "name": "Custom Field Test",
      "kind": "custom",
      "created_at": "2025-06-11T15:10:23.665-07:00",
      "updated_at": "2025-06-11T15:10:23.665-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/vnd.api+json

Response

201
application/vnd.api+json

alert field created

The response is of type object.