Add a driver to a carrier
POST/company/my_carriers/driver/:carrierId
Register a new driver associated with a specific carrier.
Requires JWT authentication.
Use cases:
- Register drivers for existing carriers
- Maintain a directory of available drivers
- Assign drivers to logistics operations
Notes:
- The carrier must exist beforehand
- Basic driver data is required
Request
Responses
- 201
- 400
- 401
- 404
Driver added successfully
Invalid input data. Possible causes:
- Empty or too short name
- Incorrect DNI/NIE format
- Invalid email
- Malformed phone number
Unauthorized. Invalid or missing JWT token.
Carrier not found. The provided ID does not exist or is not associated with the company.