Delete Absence Days Off from Calendar
Removes one or more absence days off from a specific calendar.
Overview
This endpoint allows authorized users to delete multiple absence days off in a single request by providing an array of day off IDs..
Important Behavior
- Atomic Operation: The deletion is atomic - if any validation fails, no days off will be deleted. This ensures data consistency.
- Ownership Validation: Each day off ID must belong to the specified calendar. Days off that exist but belong to a different calendar will cause the entire operation to fail.
- Empty Response: On success, the endpoint returns an empty response with HTTP 200 status code.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier (UUID v4) of the calendar from which absence days off will be deleted.
Requirements:
- Must be a valid UUID v4 format
- The calendar must exist in the system
- The authenticated user must have permission to modify this calendar
Body
Request body containing the array of absence day off IDs to be deleted from the calendar.
Note: All day off IDs must belong to the calendar specified in the path parameter.
Array of absence day off UUIDs to remove from the calendar.
Validation Rules:
- Must be an array (can be empty)
- Each element must be a valid UUID v4 string
- Each UUID must correspond to an existing day off in the system
- Each day off must belong to the calendar specified in the path parameter
Behavior:
- Empty arrays are allowed and result in no changes
- Duplicate IDs are processed without error
- Order of IDs does not affect the operation
Unique identifier (UUID v4) of the absence day off to delete
^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$[
"a4185f6c-2c7c-4933-9110-989dcad882fe",
"e882aa04-eb54-44f3-a483-0aa4c1f048fd"
]