Vehicles
Todas las operaciones de Vehicles.
Modelo de datos
Los endpoints de este módulo trabajan sobre la siguiente entidad. La referencia del esquema enumera cada campo con tipo, validación y relaciones:
| Entidad | ID del esquema | Campos | Secuencia | Permisos |
|---|---|---|---|---|
| Vehicle | vehicle |
64 | — | vehicle_* |
Endpoints
| Método | Ruta | Operación | Descripción |
|---|---|---|---|
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. |