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

NameDescriptionTypeAdditional information
bookedClassId

string

Required

Body Parameters

None.

Response Information

Resource Description

PearsonEnglish.LearningServices.Core.Models.Views.ClassViewModel
NameDescriptionTypeAdditional 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": [
        "c526ba7e-6d5e-43ca-a07e-cbc6879b75a8",
        "f84fd5ba-9d54-4706-9dd6-956593328e27"
      ],
      "MaterialId": "d64c8880-a636-49af-9edc-7f69f3f0b1df",
      "Url": "sample string 2",
      "Title": "sample string 3",
      "Description": "sample string 4",
      "Type": "sample string 5",
      "FileName": "sample string 6",
      "IsShareable": true
    },
    {
      "StudentsIds": [
        "c526ba7e-6d5e-43ca-a07e-cbc6879b75a8",
        "f84fd5ba-9d54-4706-9dd6-956593328e27"
      ],
      "MaterialId": "d64c8880-a636-49af-9edc-7f69f3f0b1df",
      "Url": "sample string 2",
      "Title": "sample string 3",
      "Description": "sample string 4",
      "Type": "sample string 5",
      "FileName": "sample string 6",
      "IsShareable": true
    }
  ]
}