Skip to main content
PATCH
/
vehicles
/
{vin}
Update an existing Vehicle
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
vin
string

Vehicle is uniquely identified by vin

seatCount
integer

Vehicle has Seat Count

Required range: x >= 0
doorCount
integer

Vehicle has Door Count

Required range: x >= 0
interiorColor
string

Vehicle was manufactured with Interior Color

exteriorColor
string

Vehicle was manufactured with Exterior Color

year
integer

Vehicle was manufactured in Year

make
string

Vehicle is of Make

trim
string

Vehicle has Trim level

transmission
string

Vehicle has Transmission

engine
string

Vehicle has Engine specification

spec

Vehicle has Vehicle Spec

drivetrain
string

Vehicle has Drivetrain

model
string

Vehicle has Model

bodyStyle
string

Vehicle has Body Style

Response

Vehicle Updated

data
object
Examples:
{
"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
boolean