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 beforehand
- The endpoint validates that the driver belongs to the specified carrier
- WARNING: Editing the
taxidfield may cause inconsistency with the associatedtrucker_user(fieldassociated). It is recommended NOT to modify this field once the driver has been created.
Request
Responses
- 200
- 400
- 401
- 404
Driver updated successfully
Response Headers
Invalid input data. Possible causes:
- Empty or too short name
- Invalid email
- Malformed phone number
Response Headers
Unauthorized. Invalid or missing JWT token.
Response Headers
Not found. Possible causes:
- Carrier does not exist
- Driver does not exist in the database
- Driver does not belong to the specified carrier