Overrides an existing location.
Note: Currently, it isn't possible to partially update a location. Therefore, you'll need to pass the full location object in the body of the call.
You can only call this method when authenticated as a Wix app or Wix user identity.
Location ID.
Location to update.
Updated location.
curl -X PUT \
'https://www.wixapis.com/locations/v1/locations/ea50573e-35fa-47ca-bba7-3e45a935d9bc' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
--data-binary '{
"location": {
"id":"ea50573e-35fa-47ca-bba7-3e45a935d9bc",
"name":"New Location Name",
"default":false,
"status":"ACTIVE",
"locationType":"UNKNOWN",
"timeZone":"America/Los_Angeles",
"address":{
"country":"US",
"subdivision":"CA",
"city":"Los Angeles",
"postalCode":"90015",
"streetAddress":{
"number":"1111",
"name":"South Figueroa Street",
"apt":""
},
"formattedAddress":"STAPLES Center, South Figueroa Street, Los Angeles, CA, USA",
"geocode":{
"latitude":34.0430175,
"longitude":-118.2672541
}
},
"revision":"4",
"archived":false
}
}'
{
"location": {
"id": "ea50573e-35fa-47ca-bba7-3e45a935d9bc",
"name": "New Location Name",
"default": false,
"status": "ACTIVE",
"locationType": "UNKNOWN",
"timeZone": "America/Los_Angeles",
"address": {
"country": "US",
"subdivision": "CA",
"city": "Los Angeles",
"postalCode": "90015",
"streetAddress": {
"number": "1111",
"name": "South Figueroa Street",
"apt": ""
},
"formattedAddress": "STAPLES Center, South Figueroa Street, Los Angeles, CA, USA",
"geocode": {
"latitude": 34.0430175,
"longitude": -118.2672541
}
},
"revision": "5",
"archived": false
}
}
There are 2 errors with this status code.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.