Entity · shift_swap_requests
Shift Swap Request Schema
Fields
Shift Swap Request Schema
Schema for shift exchange requests between employees (Schichttausch)
requesterId
User UUID of requesting employee
requesterAssignmentId
UUID of the shift assignment to swap away
targetUserId
Target employee UUID. Null = open marketplace request
nullable
targetAssignmentId
Target assignment UUID. Null until counterpart selects a shift
nullable
status
Values
PENDING_MATCHPENDING_TARGET_ACCEPTPENDING_APPROVALAPPROVEDREJECTEDCANCELLEDEXPIREDDefault: "PENDING_MATCH"
requesterNote
max 2000 charactersnullable
managerNote
max 2000 charactersnullable
approvedById
nullable
approvedAt
nullable
rejectedReason
max 2000 charactersnullable
expiresAt
When the open request expires automatically
nullable
No fields match the filter.
Standard endpoints
This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:
GET /api/v1/shift_swap_requests— List, paginated + filterableGET /api/v1/shift_swap_requests/<id>— Single entityPOST /api/v1/shift_swap_requests— CreatePATCH /api/v1/shift_swap_requests/<id>— Partial updateDELETE /api/v1/shift_swap_requests/<id>— Soft deleteGET /api/v1/shift_swap_requests/<id>/timeline— Audit + activities