2.1.1 Find or Add Unit

Updated at: 2/1/2023 8:47:51 PM

Url

/api/v2/{fleet_token}/contractors/{contractor_id}/units/find_or_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 or found unit is returned in the response.

Notes

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