POST

Query Tasks


Note: This query method uses the new Wix API Query Language syntax. If you're still using the old query syntax with chained query builder methods, see Migrate from SDK Query Builders to Wix API Query Language for guidance. The old query builder methods continue to work.

Retrieves a list of tasks, given the specified paging, filtering, and sorting.

Query Tasks runs with the following defaults, which you can override:

  • createdDate in DESC order

For field support for filters and sorting, see Tasks: Supported Filters and Sorting.

To learn about working with Query methods, see API Query Language, Sorting and Paging, and Field Projection.

PropertyFiltersSort
_id$eq, $ne, $inSort: ASC, DESC
_createdDate$eq, $ne, $gt, $lt, $gte, $lteSort: ASC, DESC
_updatedDate$eq, $ne, $gt, $lt, $gte, $lteSort: ASC, DESC
dueDate$eq, $ne, $gt, $lt, $gte, $lteSort: ASC, DESC
status$eq, $ne, $in, $ninNone
contact._id$eq, $ne, $in, $existsNone
Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Read Tasks
Learn more about app permissions.
Method Declaration
Copy
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?