1.2 Update Contractor

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

Url

/api/v2/{fleet_token}/contractors/update/{id}

Method

Post

Body

```json { "ID": "<contractor_id>", "Number": "<contractor_number>", "Name": "", "FirstName": "<first_name>", "MiddleName": "<middle_name>", "LastName": "<last_name>", "Dob": "<dob:Date>", "Email": "<email>", "PhoneNumber": "<phone_number>", "CellNumber": "<cell_number>", "Address": "<address>", "Address2": "<address2>", "City": "<city>", "State": "<state>", "Zip": "<zip>", "License": "<license>", "LicenseState": "<license_state>", "Ssn": "<ssn>", "CustomFields": { "CustomField1": "<custom_field_1>", "CustomField2": "<custom_field_2>" } } ```

Parameters

- `ID` Required, must match the param `id` in URL.

Response

```JSON { "Success": "<true|false>", "Message": "<message>", "Data": { "ID": "<contractor_id>", "Number": "<contractor_number>", "Name": "", "FirstName": "<first_name>", "MiddleName": "<middle_name>", "LastName": "<last_name>", "Dob": "<dob:Date>", "Email": "<email>", "PhoneNumber": "<phone_number>", "CellNumber": "<cell_number>", "Address": "<address>", "Address2": "<address2>", "City": "<city>", "State": "<state>", "Zip": "<zip>", "License": "<license>", "LicenseState": "<license_state>" } } ```

Returns

- The updated contractor is returned.

Notes

- The request would fail if the specified contractor is closed.
In this article