Vehicles
Toutes les opérations relatives à Vehicles.
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 |
|---|---|---|---|---|
| Vehicle | vehicle |
64 | — | vehicle_* |
Endpoints
| Méthode | Chemin | Opération | Description |
|---|---|---|---|
POST |
/v1/vehicles |
Create vehicle | Create a new vehicle in the active tenant. |
DELETE |
/v1/vehicles/{id} |
Delete vehicle | Soft delete entity. |
GET |
/v1/vehicles/{id} |
Get vehicle by id | Fetch a single vehicle. |
GET |
/v1/vehicles/{vehicleId}/availability |
GET /v1/vehicles/{vehicleId}/availability | Check if a vehicle is available for a given time range |
GET |
/v1/vehicles/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/vehicles/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/vehicles/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/vehicles |
List vehicles | List vehicles for the active tenant. |
PATCH |
/v1/vehicles/{id} |
Patch vehicle | JSON Merge Patch update. |
POST |
/v1/vehicles/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/vehicles/{id}/transition |
POST /v1/vehicles/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/vehicles/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
PUT |
/v1/vehicles/{id} |
Replace vehicle | Full replace with optimistic locking. |