Update Driver
Endpoints
Update Driver
Updates an existing driver’s account info, contact details, driver type, employee status, license details, and dispatch status.
PUT
Update Driver
API Url
{company_name} with your company name and {pk} with the driver ID.
Sample Request
| Field | Type | Required | Description |
|---|---|---|---|
account | object | yes | Nested driver account info |
account.first_name | string | yes | First name of the driver |
account.last_name | string | yes | Last name of the driver |
account.email | string | yes | Email address |
contact_number | string | yes | Contact number |
driver_type | string | yes | Type of driver (company_driver, owner_operator, etc.) |
new_employee_status | string | yes | New employee status |
status | string | yes | Current status of the driver |
is_main | boolean | yes | Is main driver |
mc_number | integer | yes | MC number |
brith_date | string (date) | yes | Date of birth |
telegram_number | string | no | Telegram username / handle |
driver_license | string | no | Driver license number |
driver_license_issue_date | string (date) | no | License issue date |
driver_license_state | string | no | License issuing state |
driver_license_expiration | string (date) | no | License expiration date |
driver_license_class | string | no | License class |
dispatch_status | integer | no | Dispatch status code |
Sample Response
Authorizations
Path Parameters
Unique identifier of the driver to update.
Body
application/json
Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Response
Driver successfully updated.
Example:
"success"