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

Delegation Schema

Schema-ID
delegation
Collection
delegations
Permissions
  • Lezendelegation_view
  • Aanmakendelegation_create_self
  • Wijzigendelegation_edit_self
  • Verwijderendelegation_delete_self

Velden

Delegation Schema

delegations4 permissions

Time-bounded stand-in arrangement for workflow addressing (ADR 0108)

delegatorUserIduuidvereist

User who is being delegated FROM (the absentee).

delegateToUserIduuidvereist

User who STANDS IN — receives the workflow steps in the delegator's place.

scopeobjectvereist

What the delegation covers. ALL = every approval + workflow address; APPROVALS = filtered by approvalTypes; POSITION = the delegator's tenure on a specific position only.

kindstringvereist
ALLAPPROVALSPOSITION
approvalTypesstring[]optioneel

For kind=APPROVALS: optional whitelist (e.g. ["vacation_request", "expense_report"]). Empty/missing = all approval types.

max. 50 itemsnullable
positionIduuidoptioneel

For kind=POSITION: the position whose addressing is delegated.

nullable
validFromdatevereist

First effective day (inclusive).

validTodateoptioneel

Last effective day (inclusive). Null = open-ended (rare; usually a vacation has a return date).

nullable
reasonstringoptioneel

Optional categorisation for HR reports.

VACATIONSICK_LEAVEBUSINESS_TRIPOTHER
nullable
cascadeIfDelegateAbsentbooleanoptioneel

When true and the delegate is themselves on delegation during the requested point, the resolver tries the delegate's delegate (one extra hop). When false, an absent delegate just fails-through to the original delegator (caller decides next step).

Default: false
notestringoptioneel

Free-text note shown in the delegation centre.

max. 500 tekensnullable
sourceVacationRequestIduuidoptioneel

Backlink to the vacation_request that auto-created this delegation. Set by the vacation-approval workflow; soft-delete cascades when the vacation_request is cancelled. Manual delegations leave this null.

read-onlynullable

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

Zoeken