Vehicles
All operations for Vehicles.
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 |
|---|---|---|---|---|
| Vehicle | vehicle |
64 | — | vehicle_* |
Endpoints
| Method | Path | Operation | 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. |