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.ActivityResultParameters
NameDescriptionTypeAdditional 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": "edeb8e96-783a-4c45-b93e-a7c3f66fb22e",
  "ContentItemId": "8131dd60-a23c-4fb0-8e75-dd4d27d0b6b4",
  "ContentItemStateName": "sample string 4",
  "Score": 1.0,
  "ContentItemResultTypeId": 1,
  "ContentItemState": null,
  "StudyMode": 0
}

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"c0e10e1d-80d9-45bf-b722-58cf9909c0c1"