GET bookedClasses/{bookedClassId}/materialsAssignments
Authorization
Access to this endpoint is granted if all following conditions are true:
- Authenticated user who is either StaffMember
- Authenticated user passes at least one of the following conditions: Authenticated user is a staff member and is assigned to the same center as a user who matches a students who is assigned to material specified by "bookedClassId" uri parameter or by content of request. Authenticated user is a staff member and is assigned to the online center as a user who matches a students who is assigned to material specified by "bookedClassId" uri parameter or by content of request. Authenticated user matches a students who is assigned to material specified by "bookedClassId" uri parameter or by content of request.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| bookedClassId | string |
Required |
Body Parameters
None.
Response Information
Resource Description
PearsonEnglish.LearningServices.Core.Models.Views.ClassViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ClassId | string |
None. |
|
| AssignedMaterials | Collection of PearsonEnglish.LearningServices.Core.Models.Views.AssignedMaterialViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"ClassId": "sample string 1",
"AssignedMaterials": [
{
"StudentsIds": [
"9186702b-e49d-46d4-bce4-b2e0c0a97752",
"ad86a045-5075-4b59-8e8e-fc5f189e36f8"
],
"MaterialId": "a8a7ea7e-356f-4cc1-81ae-c8789d876ade",
"Url": "sample string 2",
"Title": "sample string 3",
"Description": "sample string 4",
"Type": "sample string 5",
"FileName": "sample string 6",
"IsShareable": true
},
{
"StudentsIds": [
"9186702b-e49d-46d4-bce4-b2e0c0a97752",
"ad86a045-5075-4b59-8e8e-fc5f189e36f8"
],
"MaterialId": "a8a7ea7e-356f-4cc1-81ae-c8789d876ade",
"Url": "sample string 2",
"Title": "sample string 3",
"Description": "sample string 4",
"Type": "sample string 5",
"FileName": "sample string 6",
"IsShareable": true
}
]
}