API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · shift_swap_requests

Shift Swap Request Schema

Schema ID
shift_swap_request
Collection
shift_swap_requests
Permissions
  • Readshift_swap_request_view
  • Createshift_swap_request_create
  • Editshift_swap_request_edit
  • Deleteshift_swap_request_delete

Fields

Shift Swap Request Schema

shift_swap_requests4 permissions

Schema for shift exchange requests between employees (Schichttausch)

requesterIduuidrequired

User UUID of requesting employee

requesterAssignmentIduuidrequired

UUID of the shift assignment to swap away

targetUserIduuidoptional

Target employee UUID. Null = open marketplace request

nullable
targetAssignmentIduuidoptional

Target assignment UUID. Null until counterpart selects a shift

nullable
statusstringoptional
PENDING_MATCHPENDING_TARGET_ACCEPTPENDING_APPROVALAPPROVEDREJECTEDCANCELLEDEXPIRED
Default: "PENDING_MATCH"
requesterNotestringoptional
max 2000 charactersnullable
managerNotestringoptional
max 2000 charactersnullable
approvedByIduuidoptional
nullable
approvedAtdatetimeoptional
nullable
rejectedReasonstringoptional
max 2000 charactersnullable
expiresAtdatetimeoptional

When the open request expires automatically

nullable

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 + filterable
  • GET /api/v1/shift_swap_requests/<id> — Single entity
  • POST /api/v1/shift_swap_requests — Create
  • PATCH /api/v1/shift_swap_requests/<id> — Partial update
  • DELETE /api/v1/shift_swap_requests/<id> — Soft delete
  • GET /api/v1/shift_swap_requests/<id>/timeline — Audit + activities

Search