API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · shift_swap_requests

Shift Swap Request Schema

Schema-ID
shift_swap_request
Collection
shift_swap_requests
Permissions
  • Lezenshift_swap_request_view
  • Aanmakenshift_swap_request_create
  • Wijzigenshift_swap_request_edit
  • Verwijderenshift_swap_request_delete

Velden

Shift Swap Request Schema

shift_swap_requests4 permissions

Schema for shift exchange requests between employees (Schichttausch)

requesterIduuidvereist

User UUID of requesting employee

requesterAssignmentIduuidvereist

UUID of the shift assignment to swap away

targetUserIduuidoptioneel

Target employee UUID. Null = open marketplace request

nullable
targetAssignmentIduuidoptioneel

Target assignment UUID. Null until counterpart selects a shift

nullable
statusstringoptioneel
PENDING_MATCHPENDING_TARGET_ACCEPTPENDING_APPROVALAPPROVEDREJECTEDCANCELLEDEXPIRED
Default: "PENDING_MATCH"
requesterNotestringoptioneel
max. 2000 tekensnullable
managerNotestringoptioneel
max. 2000 tekensnullable
approvedByIduuidoptioneel
nullable
approvedAtdatetimeoptioneel
nullable
rejectedReasonstringoptioneel
max. 2000 tekensnullable
expiresAtdatetimeoptioneel

When the open request expires automatically

nullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/shift_swap_requests — Lijst, gepagineerd + filterbaar
  • GET /api/v1/shift_swap_requests/<id> — Enkele entity
  • POST /api/v1/shift_swap_requests — Aanmaken
  • PATCH /api/v1/shift_swap_requests/<id> — Gedeeltelijke update
  • DELETE /api/v1/shift_swap_requests/<id> — Soft-delete
  • GET /api/v1/shift_swap_requests/<id>/timeline — Audit + activiteiten

Zoeken