Shift Blocks
Todas las operaciones de Shift Blocks.
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 |
|---|---|---|---|---|
| Shift Block | shift_block |
12 | — | shift_block_* |
Endpoints
| Método | Ruta | Operación | Descripción |
|---|---|---|---|
POST |
/v1/shift_blocks |
Create shift_block | Create a new shift_block in the active tenant. |
DELETE |
/v1/shift_blocks/{id} |
Delete shift_block | Soft delete entity. |
GET |
/v1/shift_blocks/{id} |
Get shift_block by id | Fetch a single shift_block. |
GET |
/v1/shift_blocks/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/shift_blocks/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/shift_blocks/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/shift_blocks |
List shift_blocks | List shift_blocks for the active tenant. |
PATCH |
/v1/shift_blocks/{id} |
Patch shift_block | JSON Merge Patch update. |
POST |
/v1/shift_blocks/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/shift_blocks/{id}/transition |
POST /v1/shift_blocks/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/shift_blocks/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
PUT |
/v1/shift_blocks/{id} |
Replace shift_block | Full replace with optimistic locking. |