Return a JSON object that lists the tasks associated with a specified space. Note: Use nextPageUrl and prevPageUrl from the response data for query pagination.

URL Parameters

NameDescriptionLocationRequiredDefault Value
spaceIdUnique identifier of the space.pathYes
sizeNumber of tasks to return.queryNo20
pagePage number of response data.queryNo1
statusInteger value that represents if task is completed or pending. Number 0 represents pending and 1 represents completed.queryNo

Body Parameters

None.

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator

Authorization

PERM_TOPIC_UPDATE

Example Request

URL

GET https://spacesapis.avayacloud.com/api/spaces/{spaceId}/tasks?size=2&page=1&status=0

Headers

Authorization: "jwt eyJhbGciOiJSUzI1NiIsIdfgdfgnR5cCI6IkpXVCJ9.eyJ1c2VyX2lkX3NpZyI6ImxPWHpxNzVzR3J3X0xwWEMyRGRMakhyYXJlWVhyTzFMdEZHZkhkOWNkTXciLCJwcm9kdWN0X3R5cGUiOiJhY2NvdW50cyIsImxhc3R1cGRhdGV0aW1lIjoiMjAxNy0wMS0zMFQxMzo1ODo0Ny4yMDYiLCJpc3MiOiJ6YW5nLmlvIiwicHVibGlja2V5aWQiOiJhZ3h6Zm05dVpYTnVZVEl3TVRSeUdnc1NEVWRLZDNSUWRXSnNhV05MWlhrdfgdWdJQ2dsUEtFakFvTSIsImV4cCI6MTQ5NTM5MTIwMywidXNlcl9pZCI6ImFneHpmbTl1WlhOdVlUSXdNVFJ5RVFzU0JGVnpaWElZZ0lEQXMtX25fUW9NIiwidmVyIjoiMi4wIn0.SqZpw1uPIebqW3qlDsm0-DWYFKEH0SgPwtD-tSESWOF-5hLkZMqJH28ooWux2S7s9riIew7pTVPnZpTgJa5zHcEAG0gXSEJVOqmpGp_4ufM8YtZoZMpBFjyAkwyAt-ILkGUYIo0GU5WyzMPLV8YLXfgdfgOgkE2MGGOajBkjPmC2Db3pA0D0M9k-21EL1gwWBC5YIq0PDAkgulegwl6khRmB8irJQ-dfg-d-KV9eYfFpsCdJKRGzSfqg"

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Example Response

{
    "data": [
        {
            "_id": "5f2bdf40c81ac8ce33ee0da8",
            "sender": {
                "_id": "5efc5417aa4a347af96de290",
                "username": "test@avaya.com",
                "displayname": "test test",
                "picture_url": "https://storage.googleapis.com/onesna/pictures/pfpic_test_29bef4a8-99b0-4901-86c7-567a64d9dcbb",
                "type": "user"
            },
            "content": {
                "endTime": null,
                "mediaMode": "audio",
                "virtualEndTime": null,
                "meetingStatus": "active",
                "bodyText": "ooo",
                "assignees": [],
                "description": "",
                "data": [],
                "dueDate": "2020-08-06T10:38:10.669Z",
                "status": "pending",
                "attendees": [],
                "startTime": "2020-08-06T10:45:20.051Z",
                "recordings": []
            },
            "chatCount": 0,
            "likeCount": 0,
            "status": 0,
            "category": "task",
            "topicId": "5f2276a8fe5c16664f01c5be",
            "created": "2020-08-06T10:45:20.044Z",
            "modified": "2020-08-06T10:45:20.044Z",
            "__v": 0
        },
        {
            "_id": "5f2bdf49c81ac8832bee0dad",
            "sender": {
                "_id": "5efc5417aa4a347af96de290",
                "username": "test@avaya.com",
                "displayname": "test test",
                "picture_url": "https://storage.googleapis.com/onesna/pictures/pfpic_test_29bef4a8-99b0-4901-86c7-567a64d9dcbb",
                "type": "user"
            },
            "content": {
                "endTime": null,
                "mediaMode": "audio",
                "virtualEndTime": null,
                "meetingStatus": "active",
                "bodyText": "yyttytyty",
                "assignees": [],
                "description": "",
                "data": [],
                "dueDate": "2020-08-06T10:45:20.360Z",
                "status": "pending",
                "attendees": [],
                "startTime": "2020-08-06T10:45:29.057Z",
                "recordings": []
            },
            "chatCount": 0,
            "likeCount": 0,
            "status": 0,
            "category": "task",
            "topicId": "5f2276a8fe5c16664f01c5be",
            "created": "2020-08-06T10:45:29.052Z",
            "modified": "2020-08-06T10:45:29.052Z",
            "__v": 0
        }
    ],
    "nextPageUrl": "/api/spaces/5f2276a8fe5c16664f01c5be/tasks?size=2&page=2&category=task&prev=false&status=0",
    "previousPageUrl": "/api/spaces/5f2276a8fe5c16664f01c5be/tasks?size=2&page=0&category=task&prev=true&status=0",
    "total": 2
}