PATCH
/
vehicles
/
{vin}
curl --request PATCH \
  --url https://commerce.driv.ly/api/vehicles/{vin} \
  --header 'Content-Type: application/json' \
  --data '{
  "vin": "1C4HJXEN5MW592818",
  "year": 2021,
  "make": "Jeep",
  "trim": "Sport",
  "spec": "vs_4jf8x9jv5c0b",
  "model": "Wrangler",
  "engine": "3.6L V6",
  "seatCount": 5,
  "doorCount": 4,
  "bodyStyle": "SUV",
  "drivetrain": "4WD",
  "transmission": "Automatic",
  "interiorColor": "Black",
  "exteriorColor": "Red"
}'
{
  "data": {
    "vin": "1C4HJXEN5MW592818",
    "year": 2021,
    "make": "Jeep",
    "trim": "Sport",
    "spec": "vs_4jf8x9jv5c0b",
    "model": "Wrangler",
    "engine": "3.6L V6",
    "seatCount": 5,
    "doorCount": 4,
    "bodyStyle": "SUV",
    "drivetrain": "4WD",
    "transmission": "Automatic",
    "interiorColor": "Black",
    "exteriorColor": "Red"
  },
  "success": true
}

Path Parameters

vin
string
required

Vehicle is uniquely identified by vin

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json

Response

200
application/json

Vehicle Updated

The response is of type object.