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": "93f94bc6-4c41-4320-b3a0-c669b32ea4f9",
"type": "alert_fields",
"attributes": {
"slug": "custom-field-test",
"name": "Custom Field Test",
"kind": "custom",
"created_at": "2026-01-03T21:24:07.483-08:00",
"updated_at": "2026-01-03T21:24:07.483-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": "93f94bc6-4c41-4320-b3a0-c669b32ea4f9",
"type": "alert_fields",
"attributes": {
"slug": "custom-field-test",
"name": "Custom Field Test",
"kind": "custom",
"created_at": "2026-01-03T21:24:07.483-08:00",
"updated_at": "2026-01-03T21:24:07.483-08:00"
}
}
}