Skip to main content
POST
/
v0
/
business
/
{business_id}
/
vehicles
Create one or more vehicles (max 100)
curl --request POST \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/vehicles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "description": "<string>",
    "external_id": "1234567890",
    "make": "Ford",
    "model": "F-150",
    "year": 2019,
    "license_plate": "ABC-1234",
    "vin": "1FTEW1EP5KFA12345"
  }
]
'
{
  "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
    }
  ],
  "errors": [
    {
      "error": "<string>",
      "external_id": "<string>"
    }
  ]
}

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

Body

application/json
Maximum array length: 100
description
string
required

A human-readable description of the vehicle

Maximum string length: 255
Example:

"2019 Ford F-150"

external_id
string | null

The external ID of the Vehicle

Maximum string length: 255
Example:

"1234567890"

make
string | null

The make of the vehicle

Maximum string length: 255
Example:

"Ford"

model
string | null

The model of the vehicle

Maximum string length: 255
Example:

"F-150"

year
integer | null

The model year of the vehicle

Example:

2019

license_plate
string | null

The license plate of the vehicle

Maximum string length: 32
Example:

"ABC-1234"

vin
string | null

The Vehicle Identification Number

Maximum string length: 17
Example:

"1FTEW1EP5KFA12345"

Response

Successful Response

data
VehiclePublic · object[]
required
errors
VehicleCreateError · object[]
required