Delete Days Off from Vacation Calendar
Removes one or more days off from a specific vacation calendar.
Overview
This endpoint allows authorized users to delete multiple 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 vacation 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 vacation calendar from which 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 day off IDs to be deleted from the vacation calendar.
Note: All day off IDs must belong to the vacation calendar specified in the path parameter.
Array of day off UUIDs to remove from the vacation 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 vacation calendar specified in the path parameter
Behavior:
- Empty arrays are allowed and result in no changes
- Order of IDs does not affect the operation
Unique identifier (UUID v4) of the day off to delete
[
"b4c5d6e7-2345-6789-0abc-def123456789",
"c5d6e7f8-3456-7890-1bcd-ef2345678901"
]