Update company by ID
PUT/truckers/trucker_cia/:id
Updates the information of a specific company identified by its ID.
Differences from PUT /:
- Requires the company ID in the URL
- Allows updating companies belonging to other users (requires special permissions)
- Same business logic and validations as PUT /
Use Cases:
- Administrators needing to modify other users' companies
- Information approval/review workflows
- Data correction by technical support
Request Example:
{
  name: Transportes por ID S.L.,
  taxId: B99887766,
  email: porid@transportes.com,
  phone: +3499887766,
  addressGoogleMaps: {
    formatted_address: Calle ID 101, Valencia, Spain,
    place_id: ChIJ5555555555,
    geometry: {
      location: {
        lat: 39.4699,
        lng: -0.3763
      }
    }
  },
  bank: ES9121000418450200059999
}
Request
Responses
- 200
- 400
- 401
- 404
Company Details
Invalid input data. Possible causes:
- Incorrect email format
- Invalid TaxId
- Incomplete Google Maps address
- Invalid bank account number
Unauthorized. Possible causes:
- Invalid or expired JWT token
- User does not have permissions to modify this company
Company not found. Possible causes:
- ID does not exist in the database
- Company was deleted