Lists | Pyrus Help Center
api:lists

Lists

Lists make tasks easier to navigate and share by organizing them into groups.

You can find more information on lists in Help.

Methods

GET /lists

This Method returns all the lists that are available to the user.

GET https://api.pyrus.com/v4/lists
Show response

{
  "lists": [
    {
      "id": 1352,
      "name": "Branch offices",
      "children": [
        {
          "id": 1465,
          "name": "Moscow"
        },
        {
          "id": 3763,
          "name": "San Francisco"
        }
      ]
    },
    {
      "id": 2144,
      "name": "Personal"
    }
  ]
}

GET /lists/{list-id}/tasks

This method returns all the tasks in the specified list.

GET https://api.pyrus.com/v4/lists/2144/tasks
  ?item_count=100
  &include_archived=y
Show response

{
  "tasks": [
    {
      "id": 7991,
      "create_date": "2018-02-28T07:34:23Z",
      "last_modified_date": "2018-02-28T07:34:23Z",
      "author": {
        "id": 1731,
        "first_name": "Bob",
        "last_name": "Smith",
        "email": "Bob.Smith@gmail.com"
      },
      "responsible": {
        "id": 1731,
        "first_name": "Bob",
        "last_name": "Smith",
        "email": "Bob.Smith@gmail.com"
      },
      "text": "Prepare Presentation"
    },
    {
      "id": 7992,
      "create_date": "2018-02-27T17:42:42Z",
      "last_modified_date": "2018-02-27T17:42:42Z",
      "author": {
        "id": 1731,
        "first_name": "Bob",
        "last_name": "Smith",
        "email": "Bob.Smith@gmail.com"
      },
      "responsible": {
        "id": 1731,
        "first_name": "Bob",
        "last_name": "Smith",
        "email": "Bob.Smith@gmail.com"
      },
      "text": "Order office supplies"
    }
  ],
  "has_more": false
}

Parameters

item_count The maximum number of tasks in the response, the default is 200.
include_archived Specify "y" if you want to include archived tasks in the response.

Was this article helpful?

Yes, thanks! No, I have a question