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": "8b48648d-9b16-4ea7-ba81-535c0c4f9c38", "ContentItemId": "4c1faaa4-ca46-4025-98cd-7dae0d9550c6", "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:
"3ae62bfc-2f57-422c-80c0-31d93b65397f"