SmartGare
API referenceEndpoints

Change a vehicle's type

Changes the vehicle's type to a known, active type, keeping the previous one in history. **Required permission:** `referential.vehicle:write`

PUT/referential/v1/vehicles/{id}/type

Changes the vehicle's type to a known, active type, keeping the previous one in history.

Required permission: referential.vehicle:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*ChangeVehicleCategoryRequest

Response Body

*/*

*/*

*/*

curl -X PUT "https://example.com/referential/v1/vehicles/string/type" \  -H "Content-Type: application/json" \  -d '{    "reason": "string",    "type": "string"  }'
{  "brand": "string",  "capacity": 0,  "carrier_id": "string",  "created_at": "2019-08-24T14:15:22Z",  "fleet_number": "string",  "id": "string",  "length_m": 0,  "model": "string",  "plate_number": "string",  "replacement": true,  "seating_mode": "string",  "service_category": "string",  "standing": "string",  "status": "string",  "suspension_reason": "string",  "type": "string",  "uhf_tag_missing": true,  "updated_at": "2019-08-24T14:15:22Z"}