List of Assignments of each Client

For a client to view their assignments

A client can view their assignment list, including active, future, and completed homework.
To view the assignment list of a client, follow these steps:

1- Request URL:

https://gwidev.eq.optt.ca/gateway/profile/client/session/assignment?time-state=RUNNING

2- Request Method Type:
GET

3- query

parameter nameParameter TypeDescription
time-statestringRUNNING: Active sessions
FUTURE : Sessions that have not yet been activated
COMPLETED: Sessions closed by the Caregiver

* One of these values must be used

A complete example of an API call:

curl -X GET "https://gwidev.eq.optt.ca/gateway/profile/client/session/assignment?time-state=RUNNING" -H "accept: */*" -H "Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjM3NTgyMDY0ODksInVzZXJfbmFtZSI6ImxhbGVoQGNpdHJvbml0eS5jb20iLCJhdXRob3JpdGllcyI6WyJDTElFTlQiXSwianRpIjoiNGNhZTIyMDQtMWNkNi00NTJmLWFmOGItYjc0NWZkMjdmMGYxIiwiY2xpZW50X2lkIjoib3B0dC0wMmVlNzdkYy1hYzQ1LTQzNDQtODE3ZS0xN2NhNTJiNThiNWQiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXX0.PON3BpI5KnDGxNHV3G-SfMiWDTcb2SQJJ5m5Mr9fKep_AMLSeJIeZzpnH6QSI2p_jgsaPZk9KYid7KJnfnjgLDYlQYQxj2fhvdyOkl6UY4OVwe1Vgr-3Zh6hibwDrrCcGUWQ_T3nTUTMyIpYGCAFck-Fz8EIxPj5MjOK2ImkFaqpIdfSFNRDV90IhdrR0qs0YptX9Hs6chP8EvQb_eJ4P-Hv5ZBT0WNvuzrcgflPqBjcge-eW0YO016ZqO15p-GPpHuqr-dSRFjciPG8RQhMytXZUAeHNXB9KtuFKMS9CDeD8bfHkl4bGjcdOdoTPWkfZ5Lj0RD393l-EmrrJ7ZZFA" -H "offset: 1"

Response:

{
  "content": [
    {
      "id": 1858,
      "bookId": 5,
      "name": "Evidence",
      "sessionTitle": "tst 1",
      "sessionId": 1,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 14:56",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 18:23",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1855,
      "bookId": 29,
      "name": "Alternative and Balanced Thinking",
      "sessionTitle": "tt",
      "sessionId": 811,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 13:51",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 13:50",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1857,
      "bookId": 10,
      "name": "What is CBT? Let’s try Deep Breathing!",
      "sessionTitle": "tt",
      "sessionId": 811,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 13:51",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 13:50",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1851,
      "bookId": 26,
      "name": "Body scan and Meditation",
      "sessionTitle": "tt",
      "sessionId": 811,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 13:51",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 13:50",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1854,
      "bookId": 30,
      "name": "Review",
      "sessionTitle": "tt",
      "sessionId": 811,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 13:51",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 13:50",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1856,
      "bookId": 4,
      "name": "Thought Record and Automatic thoughts",
      "sessionTitle": "tt",
      "sessionId": 811,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 13:51",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 13:50",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1852,
      "bookId": 3,
      "name": "Anxiety and depression during COVID-19 pandemic",
      "sessionTitle": "tt",
      "sessionId": 811,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 13:51",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 13:50",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1853,
      "bookId": 5,
      "name": "Evidence",
      "sessionTitle": "tt",
      "sessionId": 811,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 13:51",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 13:50",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1849,
      "bookId": 27,
      "name": "Self-Care Kit",
      "sessionTitle": "tt",
      "sessionId": 811,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 13:51",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 13:50",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1846,
      "bookId": 4,
      "name": "Thought Record and Automatic thoughts",
      "sessionTitle": "test",
      "sessionId": 810,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 11:21",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 11:21",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1840,
      "bookId": 3,
      "name": "Anxiety and depression during COVID-19 pandemic",
      "sessionTitle": "test",
      "sessionId": 810,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 11:21",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 11:21",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1841,
      "bookId": 5,
      "name": "Evidence",
      "sessionTitle": "test",
      "sessionId": 810,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 11:21",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 11:21",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },

    {
      "id": 1830,
      "bookId": 13,
      "name": "5 part model",
      "sessionTitle": "test",
      "sessionId": 808,
      "moduleId": 7,
      "moduleName": "Anxiety",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/23 07:11",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/23 07:11",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    }
  ],
  "last": false,
  "totalElements": 177,
  "totalPages": 9,
  "sort": null,
  "first": true,
  "numberOfElements": 20,
  "size": 20,
  "number": 0
}