Skip to main content

Update address

PUT 

/company/address/

Updates the data of an existing company address.

Features:

  • Allows modification of all fields except the ID
  • If isDefault=true, sets this address as the primary one
  • Requires admin/editor permissions

Example of a successful response:

{
_id: 507f1f77bcf86cd799439011,
name: Updated Headquarters,
company_name: CargoOffer SL,
phone: +34987654321,
street: Avenida Principal, 456,
city: Madrid,
zipcode: 28080,
country: ES,
location: {
type: Point,
coordinates: [-3.654321, 40.456789]
},
isDefault: true,
can_be_deleted: false
}

Notes:

  • Changes to addressGoogleMaps update the coordinates
  • Updating isDefault=true affects other addresses
  • Requires a valid JWT token

Request

Responses

Address successfully updated