Update existing address
PUT/truckers/address/
Updates an existing carrier address.
Requires the _id field to be present in the request body.
Restrictions:
- Only the address owner can modify it
- The name must remain unique if modified
Request example:
{
_id: 507f1f77bcf86cd799439011,
name: Updated Main Office,
street: Calle Mayor 10,
city: Madrid,
postalCode: 28014
}
Request
Responses
- 200
- 403
Successful response containing the complete data of an address. Includes all fields from the Address schema.
Error updating. Possible causes:
- Address not found
- You are not the owner
- Invalid data