Update driver information
PUT/company/my_carriers/driver/:carrierId/:driverId
Allows modifying the data of an existing driver. Requires JWT authentication.
Use cases:
- Update driver contact information
- Change the driver's active/inactive status
- Correct erroneous information
Notes:
- All fields are optional (only provided fields will be updated)
- The carrier and driver must exist previously
Request
Responses
- 200
- 400
- 401
- 404
Driver updated successfully
Invalid input data. Possible causes:
- Empty or too short name
- Invalid email
- Malformed phone number
Unauthorized. Invalid or missing JWT token.
Not found. Possible causes:
- Carrier does not exist
- Driver does not exist or does not belong to the carrier