SmartGare
API referenceEndpoints

Correct a vehicle

Corrects a vehicle's service category, fleet number, brand, model, capacity and seating mode. A field left out is kept; one sent as null is erased, except the capacity and the seating mode, which are never erased. **Required permission:** `referential.vehicle:write`

PATCH/referential/v1/vehicles/{id}

Corrects a vehicle's service category, fleet number, brand, model, capacity and seating mode. A field left out is kept; one sent as null is erased, except the capacity and the seating mode, which are never erased.

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*CorrectVehicleRequest

Response Body

*/*

*/*

*/*

curl -X PATCH "https://example.com/referential/v1/vehicles/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "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"}