Units
All operations for Units.
Data model
The endpoints of this module work on the following entity. The schema reference lists every field with type, validation and relationships:
| Entity | Schema ID | Fields | Sequence | Permissions |
|---|---|---|---|---|
| Unit | unit |
4 | — | unit_* |
Endpoints
| Method | Path | Operation | Description |
|---|---|---|---|
POST |
/v1/units |
Create unit | Create a new unit in the active tenant. |
DELETE |
/v1/units/{id} |
Delete unit | Soft delete entity. |
GET |
/v1/units/{id} |
Get unit by id | Fetch a single unit. |
GET |
/v1/units/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/units/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/units/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/units |
List units | List units for the active tenant. |
PATCH |
/v1/units/{id} |
Patch unit | JSON Merge Patch update. |
POST |
/v1/units/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/units/{id}/transition |
POST /v1/units/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/units/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
PUT |
/v1/units/{id} |
Replace unit | Full replace with optimistic locking. |