Skip to main content

Update company (explicit route /edit)

POST 

/truckers/trucker_cia/edit

Alternative version of the PUT / endpoint for updating the company. It provides the same functionality but uses the POST method and the /edit route.

Differences from PUT /:

  • Uses the POST method instead of PUT
  • Explicit /edit route for greater clarity
  • Same business logic and validations

Recommended use cases:

  • When the client prefers to use POST instead of PUT
  • For greater semantic clarity in certain flows
  • Compatibility with clients that do not support PUT

Request Example:

{
name: Transportes Alternativos S.L.,
taxId: B11223344,
email: alternativo@transportes.com,
phone: +34900112233,
addressGoogleMaps: {
formatted_address: Avenida Alternativa 789, Barcelona, Spain,
place_id: ChIJ9876543210,
geometry: {
location: {
lat: 41.3851,
lng: 2.1734
}
}
},
bank: ES7621000418450200056789
}

Request

Responses

Company Details