Locations
Update a location
Modifies information of the existing location.You can use either of the following methods to retrieve location details: GET/stores, GET/locations. <br />Note: Method is available for subscribers with the Super Admin permission or SC Admin role. <br />Visit ServiceChannel University to find out how subscribers can update location details. <br />Example request
PUT / locations/{locationId}
{
"StoreId": "34",
"Name": "CSR Flagship",
"Latitude": 40.736601,
"Longitude": -73.991795,
"Distance": null,
"Address1": "3rd Floor, Innovation Center",
"Address2": "18 E. 16th Street",
"City": "New York",
"State": "NY",
"StateId": 1,
"Region": "Northeast",
"District": "NYC/LI",
"Zip": "10003",
"Country": "US",
"CountryId": 1,
"ClosedDate": "null",
"OpenDate": "2021-07-05T07:05:04.991Z",
"Email": "flagship@gmail.com",
"Phone": "212-555-1212",
"Contact": "",
"FaxNumber": "",
"LocationTypeId": null,
"SquareValue": 20.21
"SquareMeasure": "ft or foot" or "m or metre"
}
put/locations/{locationId}
Request
- Base URLhttps://sb2api.servicechannel.com/v3
- AuthOAuth 2Authorization codehttps://sb2login.servicechannel.com/oauth/authorizeToken URLhttps://sb2login.servicechannel.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
locationIdinteger required
Unique identifier of the subscriber’s location which information you want to update.
Request body
Response
The location details are updated.
Changes
No recorded changes to this operation across all 1 revision of this API.