Locations
Manage Notification Rules
This endpoint enables management of notification rules for a specific location, supporting additions, removals, and complete replacement of rule configurations.
Request Parameters
URL Parameters
location_id
(required): The unique identifier of the location, prefixed withloc_
Request Body
The endpoint supports three operation modes:
- Add and Remove Operations:
- Set Operation (Replace All):
- Direct Array Assignment:
Validations
The endpoint enforces several validation rules:
- Template Configuration:
- Each notification template ID must be unique within an operation.
- Templates must support the requested notification methods.
- At least one notification method must be enabled per rule.
- Duplicate template IDs result in a 400 error.
- Organization Rule Compliance:
- Prevents removal of organization-level rules through location endpoints.
- Returns appropriate error messages with status code 400 for any compliance violations.
Error Responses
The endpoint may return these errors:
- Invalid Template Configuration
- Organization Rule Conflict
- Duplicate Events
- Template Validation Errors
- Notification Method Configuration Errors
- Operation Mode Conflicts