/locations Permission level: 5

post/locations

Request

  • Base URL
    https://www.humanity.com/api/v2
  • Auth
    API key in query parameter access_token

Request body application/x-www-form-urlencoded

namestring required
typeinteger required

enum (1, 2) -> 1: Location; 2: Remote Site

countrystring
addressstring
latstring
lonstring
timezone_idinteger
storeinteger
copy_location_idinteger

Copy positions from another location.

Response

200

statusinteger
tokenstring

Example response

{
  "status": 1,
  "data": {
    "id": 542317,
    "name": "Dream Coffee Takeaway",
    "address": "Ulica Kneza Milosa",
    "store": 251300,
    "type": 2,
    "map": "https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Ulica+Kneza+Milosa%2C+",
    "directions": "https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Ulica+Kneza+Milosa%2C+"
  },
  "token": "xxxxxxx"
}

Changes