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.MaterialAssignmentParametersName | Description | Type | Additional information |
---|---|---|---|
TeacherId | globally unique identifier |
None. |
|
StudentsIds | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "TeacherId": "ca7aa325-9d07-4447-9ddc-51ff1ee4a23c", "StudentsIds": [ "82c46541-f9a5-40fb-a8b6-2907602749cd", "c3a8d7b5-ce14-44a2-b11f-8f3ed3c7add9" ] }
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.