Skip to content

Update suggestions

Request

Update the given suggestion object, used to track the status of incoming suggestions. Note that rejecting a suggestion does not delete it, and accepting the suggestion won't automatically apply it to the location.

Security
X-API-KEY or Authorization
Path
idstringrequired

The uberall unique id for the location

Body*/*required

List of Maps with both an id and a status key: [[id: 123, status: ACCEPTED], ...]

Array [
idinteger, (int64)

id of the Suggestion

typestring
Enum:"FOURSQUARE""UBER""GOOGLE""WAZE""GOOGLE_MAPS""YELP_API""MEINESTADT""NOKIA_HERE""FACEBOOK""TOMTOM"
statusstring

ACCEPTED, DECLINED or ACTIVE (if no decision was made for accepting/declining the suggestion)

Enum:"HIDDEN""PENDING""ACCEPTED""DECLINED""DECLINED_OLD_API"
valueobject

Suggestion Value

directorystring

Suggestion from directory

Enum:"FOURSQUARE""UBER""GOOGLE""WAZE""GOOGLE_MAPS""YELP""YELP_API""MEINESTADT""YELLOW_MAP""FOCUS"
]
curl -i -X PUT \
  'https://uberall.com/api/locations/{id}/suggestions' \
  -H 'Content-Type: */*' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '[
    {
      "id": 0,
      "type": "FOURSQUARE",
      "status": "HIDDEN",
      "value": {},
      "directory": "FOURSQUARE"
    }
  ]'

Responses

Successfully updated suggestions

Body*/*
statusstringrequired
Enum:"SUCCESS""PENDING""QUOTA_LIMIT_EXCEED""NOT_AUTHORIZED""FORBIDDEN""BAD_ACCESS_TOKEN""BAD_PRIVATE_KEY""BAD_PUBLIC_KEY""MISSING_PARAMETER""INVALID_PARAMETER"
messagestring

(optional) Holds further information about the response

warningsArray of strings

(optional) Holds further warnings

responseArray of objectsrequired

The actual response object of the response

Response
{
  "status": "SUCCESS",
  "message": "string",
  "warnings": [
    "string"
  ],
  "response": [
    {
      "id": 0,
      "type": "FOURSQUARE",
      "status": "HIDDEN",
      "value": {},
      "directory": "FOURSQUARE"
    }
  ]
}