Skip to content

Get location IDs for a task type via POST

Request

Returns all location IDs that have the specified task type, using a POST body for location filter criteria.

Query
taskTypestringrequired

The task type to retrieve location IDs for

Enum:"ADD_REQUIRED_FIELDS_TO_RESUME_SYNC""CLAIM_LISTING_FOR_LOCATION""CREATE_NEW_POST""ENABLE_EMAIL_NEW_MESSAGES""ENABLE_EMAIL_NEW_FORMS""ENABLE_EMAIL_NEW_POSTING_APPROVAL""ENABLE_EMAIL_NEW_REVIEW_REPLY_APPROVAL""ENABLE_EMAIL_DIGEST""FILL_MISSING_REQUIRED_FIELDS""FILL_MISSING_BASIC_FIELDS"
directorystring or null

Optional directory name to filter tasks by

Bodyapplication/jsonrequired
locationIdsArray of integers or null, (int64)

List of location IDs to include

businessIdsArray of integers or null, (int64)

List of business IDs to include

locationGroupIdsArray of integers or null, (int64)

List of location group IDs to include

labelsArray of strings or null

List of labels to include

Example:"[\"premium\", \"flagship\"]"
excludedLocationIdsArray of integers or null, (int64)

List of location IDs to exclude

excludedBusinessIdsArray of integers or null, (int64)

List of business IDs to exclude

excludedLocationGroupIdsArray of integers or null, (int64)

List of location group IDs to exclude

excludedLabelsArray of strings or null

List of labels to exclude

filterCategorystring or null

Filter strategy to apply: location-groups, labels, business, or location

Example:"business"
querystring or null

Search query string depending on filter category

curl -i -X POST \
  'https://uberall.com/api/home/tasks/locations?taskType=ADD_REQUIRED_FIELDS_TO_RESUME_SYNC&directory=string' \
  -H 'Content-Type: application/json' \
  -d '{
    "locationIds": [
      0
    ],
    "businessIds": [
      0
    ],
    "locationGroupIds": [
      0
    ],
    "labels": "[\"premium\", \"flagship\"]",
    "excludedLocationIds": [
      0
    ],
    "excludedBusinessIds": [
      0
    ],
    "excludedLocationGroupIds": [
      0
    ],
    "excludedLabels": [
      "string"
    ],
    "filterCategory": "business",
    "query": "string"
  }'

Responses

Location IDs retrieved successfully

Bodyapplication/json
locationIdsArray of integers, (int64)required

List of location IDs that have the specified task

Response
{ "locationIds": [ 0 ] }