POST contentItemResult
Authorization
Access to this endpoint is granted if all following conditions are true:
- Authenticated user passes at least one of the following conditions: Authenticated user matches a student who is assigned to content item result specified by "contentItemResultId" uri parameter or by content of request. Authenticated user is a staff member and is assigned to the same center as a user who matches a student who is assigned to content item result specified by "contentItemResultId" uri parameter or by content of request.
- Authenticated user who is either StaffMember, Student, ProspectWithTrial
Request Information
URI Parameters
None.
Body Parameters
PearsonEnglish.LearningServices.Wse.Models.ContentItemResultParameters.ActivityResultParametersName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
Duration | integer |
None. |
|
CanDoResults | Collection of PearsonEnglish.LearningServices.Wse.Models.ActivityResults.CanDoResult |
None. |
|
ActivityCapturedType | PearsonEnglish.LearningServices.Core.Models.Enums.ActivityCapturedType |
None. |
|
StudentId | globally unique identifier |
None. |
|
ContentItemId | globally unique identifier |
None. |
|
ContentItemStateName | string |
None. |
|
Score | decimal number |
None. |
|
ContentItemResultTypeId | PearsonEnglish.LearningServices.Core.Models.Enums.ContentItemResultTypes |
None. |
|
ContentItemState | PearsonEnglish.LearningServices.Core.Models.Enums.ContentItemStates |
None. |
|
StudyMode | PearsonEnglish.LearningServices.Core.Models.Enums.StudyModes |
None. |
Request Formats
application/json, text/json
Sample:
{ "Duration": 1, "CanDoResults": [ { "CanDoCode": "sample string 1", "Score": 2.0 }, { "CanDoCode": "sample string 1", "Score": 2.0 } ], "ActivityCapturedType": 0, "StudentId": "23eeae11-caad-4dd5-9978-75bbcd53cc4b", "ContentItemId": "6ef36548-52fb-42b5-a8f2-9e46b5f904f6", "ContentItemStateName": "sample string 4", "Score": 1.0, "ContentItemResultTypeId": 1, "ContentItemState": null, "StudyMode": 0 }
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"cf0ba334-f126-4dc3-a2ed-34f18b2f3232"