2.1 Add Unit

Updated at: 3/3/2022 5:22:58 AM

Url

/api/v2/{fleet_token}/contractors/{contractor_id}/units/add

Method

Post

Body

```json { "UnitNumber": "", "Year": "", "Make": "", "Vin": "", "StatedValue": 0, "EquipmentType": "", "Model": "", "RegistrationState": "<state>", "Ownership": "<ownership>", "CustomFields": { "CustomField1": "", "CustomField2": "" } } ```

Parameters

- `Ownership` Optional. Available Values: `Leased`, `Owned`, `Non-Owned`.

Response

```JSON { "Success": "<true|false>", "Message": "<message>", "Data": { "ID": "", "UnitNumber": "", "Year": "", "Make": "", "Vin": "", "StatedValue": "", "EquipmentType": "", "Model": "", "RegistrationState": "<state>", "Ownership": "<ownership>" } } ```

Returns

- The added unit is returned in the response.

Notes

- The request would fail if it fails to locate the fleet by `fleet_token`
In this article