API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · delegations

Delegation Schema

ID del esquema
delegation
Colección
delegations
Permisos
  • Leerdelegation_view
  • Creardelegation_create_self
  • Modificardelegation_edit_self
  • Eliminardelegation_delete_self

Campos

Delegation Schema

delegations4 permisos

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

delegatorUserIduuidobligatorio

User who is being delegated FROM (the absentee).

delegateToUserIduuidobligatorio

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

scopeobjectobligatorio

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

kindstringobligatorio
ALLAPPROVALSPOSITION
approvalTypesstring[]opcional

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

máx. 50 elementosadmite null
positionIduuidopcional

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

admite null
validFromdateobligatorio

First effective day (inclusive).

validTodateopcional

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

admite null
reasonstringopcional

Optional categorisation for HR reports.

VACATIONSICK_LEAVEBUSINESS_TRIPOTHER
admite null
cascadeIfDelegateAbsentbooleanopcional

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

Valor por defecto: false
notestringopcional

Free-text note shown in the delegation centre.

máx. 500 caracteresadmite null
sourceVacationRequestIduuidopcional

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.

solo lecturaadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/delegations — Lista, paginada y filtrable
  • GET /api/v1/delegations/<id> — Una entidad
  • POST /api/v1/delegations — Crear
  • PATCH /api/v1/delegations/<id> — Actualización parcial
  • DELETE /api/v1/delegations/<id> — Eliminación lógica
  • GET /api/v1/delegations/<id>/timeline — Auditoría y actividades

Búsqueda