Overview
Reference
- AlertEvents
- AlertGroups
- AlertUrgencies
- AlertSources
- Alerts
- Audits
- Authorizations
- CatalogEntities
- CatalogEntityProperties
- CatalogFields
- Catalogs
- Causes
- [DEPRECATED] CustomFieldOptions
- [DEPRECATED] CustomFields
- CustomForms
- DashboardPanels
- Dashboards
- Environments
- EscalationPolicies
- EscalationLevelsPolicies
- EscalationLevelsPath
- EscalationLevels
- EscalationPaths
- FormFieldOptions
- FormFieldPlacementConditions
- FormFieldPlacements
- FormFieldPositions
- FormFields
- FormSetConditions
- FormSets
- Functionalities
- WorkflowTasks
- [DEPRECATED] WorkflowCustomFieldSelections
- WorkflowFormFieldConditions
- WorkflowGroups
- WorkflowRuns
- Workflows
- Heartbeats
- IncidentActionItems
- [DEPRECATED] IncidentCustomFieldSelections
- IncidentEventFunctionalities
- IncidentEventServices
- IncidentEvents
- IncidentFeedbacks
- IncidentFormFieldSelections
- IncidentPermissionSetBooleans
- IncidentPermissionSetResources
- IncidentPermissionSets
- IncidentRetrospectives
- IncidentRetrospectiveSteps
- IncidentRoleTasks
- IncidentRoles
- IncidentStatusPageEvents
- IncidentSubStatuses
- IncidentTypes
- Incidents
- IpRanges
- LiveCallRouters
- OnCallRoles
- OnCallShadows
- OverrideShifts
- PlaybookTasks
- Playbooks
- RetrospectiveTemplates
- Pulses
- RetrospectiveConfigurations
- RetrospectiveProcessGroupSteps
- RetrospectiveProcessGroups
- RetrospectiveProcesses
- RetrospectiveSteps
- Roles
- ScheduleRotationActiveDays
- ScheduleRotationUsers
- ScheduleRotations
- Schedules
- Shifts
- Secrets
- Services
- Severities
- StatusPageTemplates
- StatusPages
- SubStatuses
- Teams
- UserNotificationRules
- Users
- WebhooksDeliveries
- WebhooksEndpoints
Creates an user notification rule
Creates a new user notification rule from provided data
curl --request POST \
--url https://api.rootly.com/v1/users/%7Buser_id%7D/notification_rules \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/vnd.api+json'
{
"data": {
"id": "2181ef5e-f6dd-4a57-a58e-7a14adca4677",
"type": "user_notification_rules",
"attributes": {
"user_id": 508,
"delay": 2,
"position": 1,
"user_email_address_id": "6790e831-b2d4-4a5e-a3f4-14bc1a1ba648",
"user_call_number_id": "9a70dd00-b0ee-4832-9c38-b8017bb5a10b",
"user_sms_number_id": "9a70dd00-b0ee-4832-9c38-b8017bb5a10b",
"user_device_id": "0835ec63-5efd-4672-94ba-6d429f073272",
"enabled_contact_types": [
"email"
],
"created_at": "2025-03-05T15:13:44.368-08:00",
"updated_at": "2025-03-05T15:13:44.368-08:00"
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
user_notification_rules
Contact types for which notification needs to be enabled
email
, sms
, call
, device
, non_critical_device
Delay after which rule gets triggered
Position of the rule
User email address to which notification to be sent
User phone number to which notification to be sent
User sms number to which notification to be sent
User device to which notification to be sent
Response
Unique ID of the rule
user_notification_rules
Delay after which rule gets triggered
Position of the rule
User email address to which notification to be sent
User phone number to which notification to be sent
User sms number to which notification to be sent
User device to which notification to be sent
Contact types for which notification needs to be enabled
email
, sms
, call
, device
, non_critical_device
Date of creation
Date of last update
curl --request POST \
--url https://api.rootly.com/v1/users/%7Buser_id%7D/notification_rules \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/vnd.api+json'
{
"data": {
"id": "2181ef5e-f6dd-4a57-a58e-7a14adca4677",
"type": "user_notification_rules",
"attributes": {
"user_id": 508,
"delay": 2,
"position": 1,
"user_email_address_id": "6790e831-b2d4-4a5e-a3f4-14bc1a1ba648",
"user_call_number_id": "9a70dd00-b0ee-4832-9c38-b8017bb5a10b",
"user_sms_number_id": "9a70dd00-b0ee-4832-9c38-b8017bb5a10b",
"user_device_id": "0835ec63-5efd-4672-94ba-6d429f073272",
"enabled_contact_types": [
"email"
],
"created_at": "2025-03-05T15:13:44.368-08:00",
"updated_at": "2025-03-05T15:13:44.368-08:00"
}
}
}