---
title: "Update a vehicle"
url: "https://docs.unified.to/dms/vehicle/Update_a_vehicle"
description: "Update a vehicle with Unified's Vehicle API (PUT /dms/{connection_id}/vehicle/{id}). Filter by fields and raw. Supported by 1 Vehicle integration."
date: "2026-11-21T17:08:55.315Z"
updated: "2026-11-21T17:08:55.315Z"
---
# Update a vehicle

Updated: November 21, 2026

 PUT/dms/{connection\_id}/vehicle/{id}

Updates the DmsVehicle identified by `id`. Provide the unified DmsVehicle fields to change in the request body.

## Parameters

**fields**string array 

id

created\_at

updated\_at

is\_inventory

vin

stock\_number

fleet\_number

license\_plate

year

make

model

trim

model\_code

description

type

body\_style

condition

is\_certified

status

odometer

odometer\_unit

exterior\_color

interior\_color

fuel\_type

transmission

currency

price\_amount

msrp\_amount

internet\_price\_amount

cost\_amount

received\_at

sold\_at

delivered\_at

in\_service\_at

warranty\_expires\_at

last\_service\_at

contact\_id

company\_id

options

image\_urls

is\_published

is\_active

metadata

raw

Fields to return

**raw**string 

Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar

**connection\_id**string  required 

ID of the connection

**id**string  required 

ID of the Vehicle

## Payload

A vehicle or other dealer unit: dealer stock or a customer-owned vehicle seen by service

**id**string 

**created\_at**date-time 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**updated\_at**date-time 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**is\_inventory**boolean 

True for a dealer stock unit, false for a customer-owned or service vehicle

**vin**string 

Vehicle identification number, or serial number / HIN for non-road units

**stock\_number**string 

Dealer stock number

**fleet\_number**string 

Customer or fleet unit number

**license\_plate**string 

**year**number 

Model year

**make**string 

**model**string 

**trim**string 

Trim, variant or series

**model\_code**string 

Manufacturer model code

**description**string 

Free-text vehicle description

**type** enum

Valid values:

 "CAR" 

 "TRUCK" 

 "VAN" 

 "SUV" 

 "MOTORCYCLE" 

 "BUS" 

 "RV" 

 "BOAT" 

 "TRAILER" 

 "EQUIPMENT" 

 "OTHER" 

**body\_style**string 

**condition** enum

Valid values:

 "NEW" 

 "USED" 

 "DEMO" 

 "OTHER" 

**is\_certified**boolean 

Certified pre-owned

**status** enum

Valid values:

 "AVAILABLE" 

 "ON\_ORDER" 

 "IN\_TRANSIT" 

 "RESERVED" 

 "SOLD" 

 "UNAVAILABLE" 

 "OTHER" 

Stock status; only set for inventory units

**odometer**number 

Current odometer or meter reading

**odometer\_unit** enum

Valid values:

 "MILES" 

 "KILOMETERS" 

 "HOURS" 

 "OTHER" 

**exterior\_color**string 

**interior\_color**string 

**fuel\_type** enum

Valid values:

 "GASOLINE" 

 "DIESEL" 

 "ELECTRIC" 

 "HYBRID" 

 "HYDROGEN" 

 "LPG" 

 "NATURAL\_GAS" 

 "OTHER" 

**transmission**string 

Transmission description

**currency**string 

ISO 4217 currency code

**price\_amount**number 

Asking or selling price of a stock unit

**msrp\_amount**number 

Manufacturer's suggested retail price

**internet\_price\_amount**number 

Advertised internet price

**cost\_amount**number 

Dealer total cost of the unit

**received\_at**date-time 

When the unit arrived in stock (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**sold\_at**date-time 

When the unit was last sold (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**delivered\_at**date-time 

When the vehicle was delivered to its current owner (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**in\_service\_at**date-time 

Warranty in-service date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**warranty\_expires\_at**date-time 

Factory warranty expiry date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**last\_service\_at**date-time 

Last service visit (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**contact\_id**string 

Owner, as a CRM Contact, when the owner is an individual

**company\_id**string 

Owner, as a CRM Company, when the owner is a business or fleet

**options** array 

Installed options and packages

**image\_urls**string array 

Public photo URLs

**is\_published**boolean 

Unit is published to the dealer website

**is\_active**boolean 

**metadata** array 

**raw** 

Raw data from integration

## Returns

[DmsVehicle](https://docs.unified.to/dms/vehicle/model.md)

| Response field            | Type                 | Required | Description                                                                                                                                                                                                   |
| ------------------------- | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id                        | string               | No       |                                                                                                                                                                                                               |
| created\_at               | string (date-time)   | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| updated\_at               | string (date-time)   | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| is\_inventory             | boolean              | No       | True for a dealer stock unit, false for a customer-owned or service vehicle                                                                                                                                   |
| vin                       | string               | No       | Vehicle identification number, or serial number / HIN for non-road units                                                                                                                                      |
| stock\_number             | string               | No       | Dealer stock number                                                                                                                                                                                           |
| fleet\_number             | string               | No       | Customer or fleet unit number                                                                                                                                                                                 |
| license\_plate            | string               | No       |                                                                                                                                                                                                               |
| year                      | number               | No       | Model year                                                                                                                                                                                                    |
| make                      | string               | No       |                                                                                                                                                                                                               |
| model                     | string               | No       |                                                                                                                                                                                                               |
| trim                      | string               | No       | Trim, variant or series                                                                                                                                                                                       |
| model\_code               | string               | No       | Manufacturer model code                                                                                                                                                                                       |
| description               | string               | No       | Free-text vehicle description                                                                                                                                                                                 |
| type                      | enum                 | No       | Values: CAR, TRUCK, VAN, SUV, MOTORCYCLE, BUS, RV, BOAT, TRAILER, EQUIPMENT, OTHER                                                                                                                            |
| body\_style               | string               | No       |                                                                                                                                                                                                               |
| condition                 | enum                 | No       | Values: NEW, USED, DEMO, OTHER                                                                                                                                                                                |
| is\_certified             | boolean              | No       | Certified pre-owned                                                                                                                                                                                           |
| status                    | enum                 | No       | Stock status; only set for inventory units Values: AVAILABLE, ON\_ORDER, IN\_TRANSIT, RESERVED, SOLD, UNAVAILABLE, OTHER                                                                                      |
| odometer                  | number               | No       | Current odometer or meter reading                                                                                                                                                                             |
| odometer\_unit            | enum                 | No       | Values: MILES, KILOMETERS, HOURS, OTHER                                                                                                                                                                       |
| exterior\_color           | string               | No       |                                                                                                                                                                                                               |
| interior\_color           | string               | No       |                                                                                                                                                                                                               |
| fuel\_type                | enum                 | No       | Values: GASOLINE, DIESEL, ELECTRIC, HYBRID, HYDROGEN, LPG, NATURAL\_GAS, OTHER                                                                                                                                |
| transmission              | string               | No       | Transmission description                                                                                                                                                                                      |
| currency                  | string               | No       | ISO 4217 currency code                                                                                                                                                                                        |
| price\_amount             | number               | No       | Asking or selling price of a stock unit                                                                                                                                                                       |
| msrp\_amount              | number               | No       | Manufacturer's suggested retail price                                                                                                                                                                         |
| internet\_price\_amount   | number               | No       | Advertised internet price                                                                                                                                                                                     |
| cost\_amount              | number               | No       | Dealer total cost of the unit                                                                                                                                                                                 |
| received\_at              | string (date-time)   | No       | When the unit arrived in stock (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                       |
| sold\_at                  | string (date-time)   | No       | When the unit was last sold (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                          |
| delivered\_at             | string (date-time)   | No       | When the vehicle was delivered to its current owner (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                  |
| in\_service\_at           | string (date-time)   | No       | Warranty in-service date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                             |
| warranty\_expires\_at     | string (date-time)   | No       | Factory warranty expiry date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                         |
| last\_service\_at         | string (date-time)   | No       | Last service visit (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                   |
| contact\_id               | string               | No       | Owner, as a CRM Contact, when the owner is an individual                                                                                                                                                      |
| company\_id               | string               | No       | Owner, as a CRM Company, when the owner is a business or fleet                                                                                                                                                |
| options                   | DmsVehicleOption\[\] | No       | Installed options and packages                                                                                                                                                                                |
| options\[\].code          | string               | No       | Option or RPO code                                                                                                                                                                                            |
| options\[\].description   | string               | No       |                                                                                                                                                                                                               |
| options\[\].type          | enum                 | No       | Factory-fitted or dealer-added Values: FACTORY, DEALER, OTHER                                                                                                                                                 |
| options\[\].price\_amount | number               | No       | Retail price                                                                                                                                                                                                  |
| options\[\].cost\_amount  | number               | No       | Dealer cost                                                                                                                                                                                                   |
| image\_urls               | string\[\]           | No       | Public photo URLs                                                                                                                                                                                             |
| is\_published             | boolean              | No       | Unit is published to the dealer website                                                                                                                                                                       |
| is\_active                | boolean              | No       |                                                                                                                                                                                                               |
| metadata                  | DmsMetadata\[\]      | No       |                                                                                                                                                                                                               |
| metadata\[\].id           | string               | No       | The ID of the custom field definition (from the metadata/metadata endpoint).                                                                                                                                  |
| metadata\[\].slug         | string               | No       | The integration's API name (key) of an existing custom field.                                                                                                                                                 |
| metadata\[\].value        | object               | No       | The field's value, typed by format.                                                                                                                                                                           |
| metadata\[\].namespace    | string               | No       |                                                                                                                                                                                                               |
| metadata\[\].format       | enum                 | No       | The data type of the custom field, which determines how value is formatted. Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE\_SELECT, MULTIPLE\_SELECT, MEASUREMENT, PRICE, YES\_NO, CURRENCY, URL |
| metadata\[\].extra\_data  | object               | No       |                                                                                                                                                                                                               |

## Errors

 Errors return the HTTP status code and a JSON body with `statusCode`, `error` (the short label) and `message` (a human-readable detail). 

```json
{
  "statusCode": 429,
  "error": "Too Many Requests",
  "message": "Too many requests to unified.to API; max requests per minute: N"
}
```

| Status | Error                 | Meaning                                           |
| ------ | --------------------- | ------------------------------------------------- |
| 400    | Bad Request           | The request was malformed or failed validation.   |
| 401    | Unauthorized          | The connection is likely broken; re-authorize it. |
| 403    | Forbidden             | The connection is missing permissions or scopes.  |
| 404    | Not Found             | The requested resource does not exist.            |
| 429    | Too Many Requests     | Rate limit exceeded (see the two sources below).  |
| 500    | Internal Server Error | An unexpected error occurred.                     |
| 501    | Not Implemented       | Not supported by this integration.                |

 Errors from the underlying integration pass through: the integration's status comes back as ours (429, 401, 403, 404 or 5xx), usually with its message. When the integration's error body is unclear, Unified extracts what it can and returns a clearer message. 

### 429 Too Many Requests

A 429 has two possible sources:

* The integration's own rate limit, passed through.
* Unified's workspace limit: a rolling 60 seconds, set by plan, with the message `Too many requests to unified.to API; max requests per minute: N`.

## Code Samples

### Node.js SDK

```javascript
import { UnifiedTo } from '@unified-api/typescript-sdk';

const sdk = new UnifiedTo({
    security: {
        jwt: '<YOUR_API_KEY_HERE>',
    },
});

const connectionId = '5de520f96e439b002043d8dc';

const id = '1234';

const results = await sdk.dms.updateDmsVehicle({ connectionId, id, dmsVehicle: { }, 
    fields: '',
    raw: '',
 });
```

### Node.js (axios)

```javascript
const options = {
  method: 'PUT',
  url: 'https://api.unified.to/dms/5de520f96e439b002043d8dc/vehicle/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
```

### Java

```java
AsyncHttpClient client = new DefaultAsyncHttpClient();

client.prepare("PUT", "https://api.unified.to/dms/5de520f96e439b002043d8dc/vehicle/5de520f96e439b002043d8d8?fields=&raw=")
  .setHeader("accept", "application/json")
  .setHeader("authorization", ".....")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
```

### Go

```go
import (
	"fmt"
	"net/http"
	"io/ioutil"
)

url := `https://api.unified.to/dms/5de520f96e439b002043d8dc/vehicle/5de520f96e439b002043d8d8?fields=&raw=

req, _ := http.NewRequest("PUT", url, nil)

req.Header.Add("accept", "application/json")
req.Header.Add("authorization", ".....")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
```

### Python

```python
import requests

url = "https://api.unified.to/dms/5de520f96e439b002043d8dc/vehicle/5de520f96e439b002043d8d8?fields=&raw="

headers = {
    "accept": "application/json",
    "authorization": "....."
}

response = requests.put(url, headers=headers)
```

### PHP

```php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.unified.to/dms/5de520f96e439b002043d8dc/vehicle/5de520f96e439b002043d8d8?fields=&raw=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_HTTPHEADER => [
    "accept: application/json",
    "authorization: ....."
  ],
]);
```

### Ruby

```ruby
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.unified.to/dms/5de520f96e439b002043d8dc/vehicle/5de520f96e439b002043d8d8?fields=&raw=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["accept"] = 'application/json'
request["authorization"] = '....'

response = http.request(request)
puts response.read_body
```

### cURL

```bash
curl --request PUT \
  --url 'https://api.unified.to/dms/5de520f96e439b002043d8dc/vehicle/5de520f96e439b002043d8d8?fields=&raw=' \
  --header 'accept: application/json' \
  --header 'authorization: .....'
```
