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

Bulk Update Completion Criteria

Bulk-creates or updates completion criteria for one or more courses in a single request

Bulk-creates or updates completion criteria for one or more courses in a single request.

POSThttps://example.thoughtindustries.com/incoming/v2/content/completion-criteria/bulk/update

Example request

curl -X POST "https://example.thoughtindustries.com/incoming/v2/content/completion-criteria/bulk/update" \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "criteria": []
}'

Parameters

NameTypeRequiredLocationDescription
criteriaUpdateCourseCompletionCriteria[]YesbodyArray of completion criteria objects to create or update, each scoped to a specific course.

Example response

{
  "data": {
    "APIBulkUpdateCompletionCriteria": {
      "createdCount": 0,
      "updatedCount": 0,
      "errors": [
        {
          "courseId": "00000000-0000-0000-0000-000000000000",
          "type": "coursePercentViewed",
          "error": "string",
          "record": "string"
        }
      ],
      "warnings": [
        "string"
      ]
    }
  }
}

Response fields

FieldTypeDescription
createdCountintegerNumber of completion criteria records created during this operation.
updatedCountintegerNumber of completion criteria records updated during this operation.
errorsBulkCompletionCriteriaError[]Array of errors encountered while processing individual criteria records.
errors.courseIduuidID of the course associated with the failed criteria record.
errors.typeCourseCompletionCriteriaTypeCompletion criteria type that failed to be created or updated (e.g., coursePercentViewed).
errors.errorstringHuman-readable message describing why the criteria record failed.
errors.recordstringSerialized representation of the criteria record that caused the error.
warningsstring[]Non-fatal warnings generated during the bulk update, such as skipped or deprecated fields.