Crew Templates
Todas las operaciones de Crew Templates.
Modelo de datos
Los endpoints de este módulo trabajan sobre la siguiente entidad. La referencia del esquema enumera cada campo con tipo, validación y relaciones:
| Entidad | ID del esquema | Campos | Secuencia | Permisos |
|---|---|---|---|---|
| Crew Template | crew_template |
8 | — | shift_block_* |
Endpoints
| Método | Ruta | Operación | Descripción |
|---|---|---|---|
POST |
/v1/crew_templates |
Create crew_template | Create a new crew_template in the active tenant. |
DELETE |
/v1/crew_templates/{id} |
Delete crew_template | Soft delete entity. |
GET |
/v1/crew_templates/{id} |
Get crew_template by id | Fetch a single crew_template. |
GET |
/v1/crew_templates/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/crew_templates/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/crew_templates/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/crew_templates |
List crew_templates | List crew_templates for the active tenant. |
PATCH |
/v1/crew_templates/{id} |
Patch crew_template | JSON Merge Patch update. |
POST |
/v1/crew_templates/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/crew_templates/{id}/transition |
POST /v1/crew_templates/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/crew_templates/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
PUT |
/v1/crew_templates/{id} |
Replace crew_template | Full replace with optimistic locking. |