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

Path parameters

locationIdinteger required

Unique identifier of the subscriber’s location which information you want to update.

Request body

StoreIdstring required

Numeric location identifier in the client’s system.

Namestring required

Location name.

Latitudenumber double

Global position. Latitude.

Longitudenumber double

Global position. Longitude.

Distancenumber double

Distance from GPS coordinates to the location.

Address1string

Additional location address.

Address2string

Main location address.

Citystring

Location city.

Statestring

State where the location is placed.

StateIdinteger

Numeric identifier of the location’s state.

Regionstring

Part of the country where the location is placed.

Districtstring

Abbreviation of the town or country area where the location is placed.

Zipstring

Postal code of the location.

Countrystring

Abbreviation of the country name where the location is placed.

CountryIdinteger

Numeric identifier of the country of the location.

ClosedDatestring date-time

Last day when the location is open for business.

OpenDatestring date-time

First day when the location is open for business.

Emailstring

Email the location can be contacted at.

Phonestring

Contact phone number of the location.

Contactstring

Name of the main person to contact at the location.

FaxNumberstring

Fax number the location can be contacted at.

LocationTypeIdinteger

Numeric identifier of the location type.

SquareValuenumber double

Square value

SquareMeasurestring

Square measure

Response

The location details are updated.

Changes

No recorded changes to this operation across all 1 revision of this API.