Shift Blocks
Toutes les opérations relatives à Shift Blocks.
Modèle de données
Les endpoints de ce module portent sur l'entité suivante. La référence du schéma décrit chaque champ avec son type, sa validation et ses relations :
| Entité | ID du schéma | Champs | Séquence | Autorisations |
|---|---|---|---|---|
| Shift Block | shift_block |
12 | — | shift_block_* |
Endpoints
| Méthode | Chemin | Opération | Description |
|---|---|---|---|
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. |