POST bookedClasses/{bookedClassId}/materials/{materialId}/assignments
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.
- Authenticated user matches a teacher who is assigned to material specified by "materialAssignmentParameters" uri parameter or by content of request.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| bookedClassId | string |
Required |
|
| materialId | globally unique identifier |
Required |
Body Parameters
PearsonEnglish.LearningServices.Wse.Models.MaterialAssignmentParameters| Name | Description | Type | Additional information |
|---|---|---|---|
| StudentsIds | Collection of globally unique identifier |
None. |
|
| TeacherId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"StudentsIds": [
"901f2b39-158a-4047-a0f9-c2fa51ed4a65",
"a7bd265a-99c6-4de7-82f9-6a5e6056dd2e"
],
"TeacherId": "dc250cb4-7578-4e3e-90e6-e4580a4d2c7f"
}
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.