Skip to content

Create a new saved datapoint's filter

Request

Creates a new DataPointFilter

Security
X-API-KEY or Authorization
Bodyapplication/jsonrequired

DataPointFilter object that needs to be created

namestringrequired

The filter name

sharedboolean

Defines if the filter is shared or not

directoriesArray of strings, unique

The list of directories for which the dataPoints should be filtered

Items Enum:"FOURSQUARE""UBER""GOOGLE""WAZE""GOOGLE_MAPS""YELP_API""MEINESTADT""NOKIA_HERE""FACEBOOK""TOMTOM"
countriesArray of strings, unique

The list of countries for which the dataPoints should be filtered

Items Enum:"AF""AX""AL""DZ""AS""AD""AO""AI""AQ""AG"
dataPointTypesArray of strings, unique

The list of data point types (REVIEW or PHOTO) for which the dataPoints should be filtered

Items Enum:"REVIEW""PHOTO""CHECKIN""CONVERSATION""COMMENT""QUESTION""POST""IMAGE""VIDEO""CAROUSEL_ALBUM"
ratingsArray of integers, (int32), unique

The list of ratings (1, 2, 3, 4 or 5) for which the dataPoints should be filtered

labelsArray of strings, unique

The list of labels for which the dataPoints should be filtered

isReadboolean

Flag to set when only datapoints should be shown that the current user already read

hasReplyboolean

Flag to set when only datapoints with a reply should be shown

hasTextboolean

Flag to set when only datapoints with text should be shown

querystring

Any combination of words that should be checked in the dataPoints text, reply messages and author

frequencystring

The frequency of the email notifications.

Enum:"ALWAYS""DAILY""WEEKLY""MONTHLY""QUARTERLY""NEVER"
timeSpanstring

The date range for which the dataPoints should be filtered.

Enum:"TODAY""LAST_7_DAYS""LAST_14_DAYS""LAST_30_DAYS""LAST_90_DAYS""LAST_365_DAYS""ALL_TIME"
crossfeedFilterIdinteger, (int64)

The id of a filter saved by a user in the Feed

dateEndstring, (date-time)

The maximum date for which the dataPoints should be filtered

dateStartstring, (date-time)

The minimum date for which the dataPoints should be filtered

ownerIdinteger, (int64)

The id of the user that owns the filter

ownerNamestring

The name of the user that owns the filter

salesPartnerIdinteger, (int64)

The sales partner to which the filter belongs

subscriberIdsArray of integers, (int64)

The list of user's ids that are subscribed to the filter

businessIdsArray of integers, (int64), unique

The list of businesses IDs for which the dataPoints should be filtered

curl -i -X POST \
  https://uberall.com/api/data-points/filters \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "name": "string",
    "shared": true,
    "directories": [
      "FOURSQUARE"
    ],
    "countries": [
      "AF"
    ],
    "dataPointTypes": [
      "REVIEW"
    ],
    "ratings": [
      0
    ],
    "labels": [
      "string"
    ],
    "isRead": true,
    "hasReply": true,
    "hasText": true,
    "query": "string",
    "frequency": "ALWAYS",
    "timeSpan": "TODAY",
    "crossfeedFilterId": 0,
    "dateEnd": "2019-08-24T14:15:22Z",
    "dateStart": "2019-08-24T14:15:22Z",
    "ownerId": 0,
    "ownerName": "string",
    "salesPartnerId": 0,
    "subscriberIds": [
      0
    ],
    "businessIds": [
      0
    ]
  }'

Responses

Success

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

responseobjectrequired

The actual response object of the response

Response
{
  "status": "SUCCESS",
  "message": "string",
  "warnings": [
    "string"
  ],
  "response": {
    "dataPointFilter": {
      "name": "string",
      "shared": true,
      "directories": [
        "FOURSQUARE"
      ],
      "countries": [
        "AF"
      ],
      "dataPointTypes": [
        "REVIEW"
      ],
      "ratings": [
        0
      ],
      "labels": [
        "string"
      ],
      "isRead": true,
      "hasReply": true,
      "hasText": true,
      "query": "string",
      "frequency": "ALWAYS",
      "timeSpan": "TODAY",
      "crossfeedFilterId": 0,
      "dateEnd": "2019-08-24T14:15:22Z",
      "dateStart": "2019-08-24T14:15:22Z",
      "ownerId": 0,
      "ownerName": "string",
      "salesPartnerId": 0,
      "subscriberIds": [
        0
      ],
      "businessIds": [
        0
      ]
    }
  }
}