API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · delegations

Delegation Schema

ID du schéma
delegation
Collection
delegations
Autorisations
  • Liredelegation_view
  • Créerdelegation_create_self
  • Modifierdelegation_edit_self
  • Supprimerdelegation_delete_self

Champs

Delegation Schema

delegations4 autorisations

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

delegatorUserIduuidobligatoire

User who is being delegated FROM (the absentee).

delegateToUserIduuidobligatoire

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

scopeobjectobligatoire

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

kindstringobligatoire
ALLAPPROVALSPOSITION
approvalTypesstring[]facultatif

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

max. 50 élémentsnullable
positionIduuidfacultatif

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

nullable
validFromdateobligatoire

First effective day (inclusive).

validTodatefacultatif

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

nullable
reasonstringfacultatif

Optional categorisation for HR reports.

VACATIONSICK_LEAVEBUSINESS_TRIPOTHER
nullable
cascadeIfDelegateAbsentbooleanfacultatif

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).

Par défaut : false
notestringfacultatif

Free-text note shown in the delegation centre.

max. 500 caractèresnullable
sourceVacationRequestIduuidfacultatif

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.

lecture seulenullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/delegations — Liste, paginée et filtrable
  • GET /api/v1/delegations/<id> — Une entité
  • POST /api/v1/delegations — Créer
  • PATCH /api/v1/delegations/<id> — Mise à jour partielle
  • DELETE /api/v1/delegations/<id> — Suppression logique
  • GET /api/v1/delegations/<id>/timeline — Audit et activités

Recherche