Shift Blocks
Alle operaties rond Shift Blocks.
Datamodel
De endpoints van deze module werken op de volgende entiteit. De schemareferentie toont elk veld met type, validatie en relaties:
| Entiteit | Schema-ID | Velden | Volgnummer | Permissions |
|---|---|---|---|---|
| Shift Block | shift_block |
12 | — | shift_block_* |
Endpoints
| Methode | Pad | Operatie | Beschrijving |
|---|---|---|---|
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. |