This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of up to 100 areas, given the provided paging, filtering, and sorting.
Query Areas runs with these defaults, which you can override:
id is sorted in ASC ordercursorPaging.limit is 50Supported filter and sort fields: id, name, locationId, status, entrances.id, createdDate,
updatedDate. To build an area and entrance picker, filter for status ACTIVE and the location's
locationId. entrances.id is a list field: filter it with $hasSome, for example
{"entrances.id": {"$hasSome": ["<ENTRANCE_ID>"]}} to find the area that holds an entrance. A plain value or
$eq fails with INVALID_ARGUMENT.
To learn about working with Query methods, see API Query Language and Sorting and Paging.
| Property | Filters | Sort |
|---|---|---|
id | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | Sort: ASC, DESC |
name | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | Sort: ASC, DESC |
locationId | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | Sort: ASC, DESC |
status | $eq, $ne, $in, $exists | Sort: ASC, DESC |
entrances.id | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | Sort: ASC, DESC |
createdDate | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | Sort: ASC, DESC |
updatedDate | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | Sort: ASC, DESC |
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.