Skip to main content
PATCH
/
v0
/
business
/
{business_id}
/
vehicles
/
{vehicle_id}
Update a vehicle
curl --request PATCH \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/vehicles/{vehicle_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "external_id": "<string>",
  "description": "<string>",
  "make": "<string>",
  "model": "<string>",
  "year": 123,
  "license_plate": "<string>",
  "vin": "<string>",
  "is_active": true
}
'
{
  "data": {
    "business_id": "<string>",
    "description": "<string>",
    "make": "Ford",
    "model": "F-150",
    "license_plate": "ABC-1234",
    "vin": "1FTEW1EP5KFA12345",
    "id": "<string>",
    "external_id": "1234567890",
    "year": 2019,
    "is_active": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.getasset.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string<biz_string>
required
vehicle_id
string<vhc_string>
required

Body

application/json
external_id
string | null

The external ID of the Vehicle

Maximum string length: 255
description
string | null

A human-readable description of the vehicle

Maximum string length: 255
make
string | null

The make of the vehicle

Maximum string length: 255
model
string | null

The model of the vehicle

Maximum string length: 255
year
integer | null

The model year of the vehicle

license_plate
string | null

The license plate of the vehicle

Maximum string length: 32
vin
string | null

The Vehicle Identification Number

Maximum string length: 17
is_active
boolean | null

Whether the vehicle is active

Response

Successful Response

data
VehiclePublic · object
required