API – List of tasks
- To get the list of tasks you need to send GET request to the following URI /api/v2/tasks/get-list
- The request must contain the headings Content-Type: application/json;charset=UTF-8 and Authorization: Bearer xxxxxx.
Request example:
curl 'https://your-domain.davintoo.com/api/v2/tasks/get-list' -H 'Authorization: Bearer xxxxxx' -H 'Content-Type: application/json;charset=UTF-8'
The query supports filtering by the following fields:
- Task titletitle
- Task type (training-program, course, resource, workshops, meetup, test, complex-test, polls, poll360, check-list, webinar)type
- Task tagstags
- Date of creationcreated_at
- Start Datedate_start
- Completion datedate_finish
Example of a query with an title search:
curl 'https://your-domain.davintoo.com/api/v2/tasks/get-list?filter[title]=Zero-to-Hero HTML Course for Beginners' -H 'Authorization: Bearer xxxxxx' -H 'Content-Type: application/json;charset=UTF-8'
Answer
-
In case of successful request (HTTP response code - 200), the following result will be returned:
- task arraydata
- pagination object (information about the number of pages, the current page, the number of tasks)pager
-
In case of error (HTTP response code - 400) it returns JSON object with error information