Update carrier
PUT/company/my_carriers/:carrierId
Allows updating any field of an existing carrier. Requires JWT authentication.
Use cases:
- Update contact information (email, phone)
- Modify business name or NIF/CIF
- Temporarily activate/deactivate carriers
- Manage drivers associated with the carrier
Notes:
- All fields can be updated: name, email, phone, taxid, enabled, drivers
- Fields not included in the request retain their current value
- The carrier ID must be valid and exist
- The carrier must be associated with the authenticated company
Request
Responses
- 200
- 400
- 401
- 404
Carrier updated successfully
Response Headers
Invalid input data. Possible causes:
- Invalid email format
- Malformed request body
- Duplicate Tax ID
Response Headers
Unauthorized. Invalid or missing JWT token.
Response Headers
Carrier not found. The provided ID does not exist or is not associated with the company.