Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/vnd.api+json
Response
alert field created
Creates a new alert field from provided data
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": "6849b71d-e161-43ca-86b6-2b5b2f6af7bc",
    "type": "alert_fields",
    "attributes": {
      "slug": "custom-field-test",
      "name": "Custom Field Test",
      "kind": "custom",
      "created_at": "2025-11-04T03:23:24.560-08:00",
      "updated_at": "2025-11-04T03:23:24.560-08:00"
    }
  }
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
alert field created
Show child attributes
Was this page helpful?
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": "6849b71d-e161-43ca-86b6-2b5b2f6af7bc",
    "type": "alert_fields",
    "attributes": {
      "slug": "custom-field-test",
      "name": "Custom Field Test",
      "kind": "custom",
      "created_at": "2025-11-04T03:23:24.560-08:00",
      "updated_at": "2025-11-04T03:23:24.560-08:00"
    }
  }
}