Skip to main content
https://.thoughtindustries.com

Update Grade

Updates the grade for a specific assessment attempt by ID

Updates the grade for a specific assessment attempt by ID.

PUThttps://example.thoughtindustries.com/incoming/v2/assessmentAttempts/:id/updateGrade

Example request

curl -X PUT "https://example.thoughtindustries.com/incoming/v2/assessmentAttempts/:id/updateGrade" \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "grade": 0
}'

Parameters

NameTypeRequiredLocationDescription
iduuidYespathThe unique identifier of the assessment attempt to update.
gradeintegerYesbodyThe new grade to assign to the assessment attempt, expressed as a whole number percentage (e.g., 85 for 85%).

Example response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "user": {
    "id": "00000000-0000-0000-0000-000000000000",
    "firstName": "string",
    "lastName": "string",
    "email": "string",
    "externalCustomerId": "00000000-0000-0000-0000-000000000000"
  },
  "course": {
    "id": "00000000-0000-0000-0000-000000000000",
    "title": "string"
  },
  "assessment": {
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "string",
    "title": "string"
  },
  "originalGrade": 0,
  "grade": 0,
  "passed": true
}

Response fields

FieldTypeDescription
iduuidUnique identifier of the assessment attempt.
userUserUser who made the attempt.
user.iduuidUnique identifier of the user.
user.firstNamestringFirst name of the user.
user.lastNamestringLast name of the user.
user.emailstringEmail address of the user.
user.externalCustomerIduuidExternal customer identifier associated with the user.
courseCourseCourse the assessment attempt belongs to.
course.iduuidUnique identifier of the course.
course.titlestringTitle of the course.
assessmentAssessmentAssessment the attempt belongs to.
assessment.iduuidUnique identifier of the assessment.
assessment.typestringType of the assessment.
assessment.titlestringTitle of the assessment.
originalGradeintegerThe attempt's grade before this update.
gradeintegerThe updated grade recorded for the attempt.
passedbooleanIndicates whether the attempt passed at the new grade.