API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen
Entity · shift_swap_requests

Shift Swap Request Schema

Schema-ID
shift_swap_request
Collection
shift_swap_requests
Permissions
  • Lesenshift_swap_request_view
  • Anlegenshift_swap_request_create
  • Ändernshift_swap_request_edit
  • Löschenshift_swap_request_delete

Felder

Shift Swap Request Schema

shift_swap_requests4 Permissions

Schema for shift exchange requests between employees (Schichttausch)

requesterIduuiderforderlich

User UUID of requesting employee

requesterAssignmentIduuiderforderlich

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 Zeichennullable
managerNotestringoptional
max 2000 Zeichennullable
approvedByIduuidoptional
nullable
approvedAtdatetimeoptional
nullable
rejectedReasonstringoptional
max 2000 Zeichennullable
expiresAtdatetimeoptional

When the open request expires automatically

nullable

Standard-Endpoints

Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:

  • GET /api/v1/shift_swap_requests — Liste, paginiert + filterbar
  • GET /api/v1/shift_swap_requests/<id> — Einzelne Entity
  • POST /api/v1/shift_swap_requests — Anlegen
  • PATCH /api/v1/shift_swap_requests/<id> — Teil-Update
  • DELETE /api/v1/shift_swap_requests/<id> — Soft-Delete
  • GET /api/v1/shift_swap_requests/<id>/timeline — Audit + Aktivitäten

Suche