2.5 Move Unit
Updated at: 10/24/2023 5:49:01 AM
Url
/api/v2/{fleet_token}/contractors/{contractor_id}/units/move/{id}
Method
Post
Body
```json
{
"EffectiveDate": "<date:yyyy-MM-dd>",
"DestinationFleetToken": "<destination_fleet_token>",
"DestinationContractorID": "<destination_contractor_id>"
}
```
Parameters
- `EffectiveDate` Required.
- `DestinationFleetToken` Optional, can be left blank if the destination fleet is the same as current one.
- `DestinationContractorID` Required.
Response
```JSON
{
"Success": "<true|false>",
"Message": "The request unit is moved to some new contractor successfully",
"Data":
{
"ID": "",
"UnitNumber": "",
"Year": "",
"Make": "",
"Vin": "",
"StatedValue": "",
"EquipmentType": "",
"Model": "",
"RegistrationState": "<state>",
"Ownership": "<ownership>"
}
}
```
Returns
- The moved unit is returned in the response.
Notes
- The move request would fail if the request unit has any active coverages.
- The identity of the request unit would not change after the move.
In this article