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": "32684284-999c-4582-96f7-9682613c69ee",
"type": "alert_fields",
"attributes": {
"slug": "custom-field-test",
"name": "Custom Field Test",
"kind": "custom",
"created_at": "2026-02-13T18:03:31.985-08:00",
"updated_at": "2026-02-13T18:03:31.985-08:00"
}
}
}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": "32684284-999c-4582-96f7-9682613c69ee",
"type": "alert_fields",
"attributes": {
"slug": "custom-field-test",
"name": "Custom Field Test",
"kind": "custom",
"created_at": "2026-02-13T18:03:31.985-08:00",
"updated_at": "2026-02-13T18:03:31.985-08:00"
}
}
}