Endpoints

  • POST /courses/{courseId}/users/{userId}/completions - import completion data for a single course/user pair into Rise.

Import Completion Data

POST /courses/{courseId}/users/{userId}/completions

Notes:

  • The completion record is associated with the current published version of the course

  • The date parameters are reflected in the Duration columns of various reports (i.e., the duration for an imported completion is calculated as the difference between startedAt and completedAt). Report views within Rise can take up to 5 minutes to refresh.

  • Multiple calls to this endpoint with the same courseId and userId will override the date parameters provided in previous calls (i.e., this endpoint will only create a single completion record for a given course and user pair regardless of how many times it is called)

Request Parameters (JSON)

  • completedAt (ISO 8601 date, required) - when the user completed the course

  • startedAt (ISO 8601 date, required) - when the user started the course

Success response

202 "Accepted"

Endpoint-specific error codes:

  • course_not_found

  • course_not_published

  • user_not_found

Did this answer your question?