v1

latestOpenAPI 3.1.02026-08-0421263172.4 KB
tasks

Query tasks

Searches for Tasks that match specified filtering criteria and returns matching tasks in paginated form.

This method allows filtering tasks based on the following criteria:

  • Parent-task relationships.
  • Task status with inclusive or exclusive filtering.
  • Update time ranges.

Lattice returns the results in pages. When more results are available than can be returned in a single response, a page_token is provided. Use the page_token in subsequent requests to retrieve the next set of results.

By default, this returns the latest task version for each matching task.

post/api/v1/tasks/query

Headers

Authorizationstring required

Bearer authentication

Request body

pageTokenstring

If set, returns results starting from the given pageToken.

parentTaskIdstring

If present matches tasks with this parent task ID. This is mutually exclusive with all other query parameters, for example, either provide parent task ID, or any of the remaining parameters, but not both.

Response

Task query was successful

nextPageTokenstring

Incomplete results can be detected by a non-empty nextPageToken field in the query results. In order to retrieve the next page, perform the exact same request as previously and append a pageToken field with the value of nextPageToken from the previous page. A new nextPageToken is provided on the following pages until all the results are retrieved.