Units
Toutes les opérations relatives à Units.
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 |
|---|---|---|---|---|
| Unit | unit |
4 | — | unit_* |
Endpoints
| Méthode | Chemin | Opération | 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. |