My Work

Search to-do tasks

Search to-do tasks with filtering and pagination. Task IDs can be found when using POST /mywork/todo under the field named 'id'.

post/mywork/todo

Request

  • Base URL
    https://api.surense.com/api/v1
  • URL
    https://api.surense.com/api/v1/mywork/todo
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://api.surense.com/oauth/token scopes: global:user

Request body

pageinteger

Page number (0-based)

pageSizeinteger

Page size

sortBystring required

Sort by field

sortDirstring

Sort direction

remindersFirstboolean required

Show reminders first

dueAtStartstring

Due date start (inclusive)

dueAtEndstring

Due date end (exclusive)

Example request

{
  "pageSize": 20,
  "sortBy": "dueAt",
  "sortDir": "ASC",
  "remindersFirst": true,
  "dueAtStart": "2024-01-01T00:00:00Z",
  "dueAtEnd": "2024-12-31T23:59:59Z"
}

Response

OK

hasNextPageboolean
totalElementsinteger

Changes

No recorded changes to this operation across all 1 revision of this API.