Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.46 KB

filter-14.md

File metadata and controls

49 lines (39 loc) · 1.46 KB

Filter 14

You can use any field_name from this endpoint results as a filter, and you can also use more than one field to create AND conditions. For date fields (ended with _ts), you can also search for ranges using the $gte (Greater than or equal to) and/or $lte (Lower than or equal to). You can use one of the following methods:

/endpoint?filter={ "field_name": "Value" }

/endpoint?filter[field_name]=Value

/endpoint?filter={ "created_ts": "today" }

/endpoint?filter[created_ts]=today

/endpoint?filter={ "created_ts": { "$gte": "yesterday", "$lte": "today" } }

/endpoint?filter[created_ts][$gte]=yesterday&filter[created_ts][$lte]=today

/endpoint?filter[address][city]=memphis

/endpoint?filter={ "address": { "city" : "memphis" } }

Structure

Filter14

Fields

Name Type Tags Description Getter Setter
userId ?array Optional - getUserId(): ?array setUserId(?array userId): void
id ?array Optional - getId(): ?array setId(?array id): void
createdTs ?(AnyOf(CreatedTs, CreatedTs1)) Optional This is a nested AnyOf case. getCreatedTs(): setCreatedTs( createdTs): void

Example (as JSON)

{
  "user_id": {
    "key1": "val1",
    "key2": "val2"
  },
  "id": {
    "key1": "val1",
    "key2": "val2"
  },
  "created_ts": "last 30 days"
}