Paths

Unlock enrollment statistics

Changed on

๐Ÿ”‘

Required OAuth scope: pathStats:write.

Unlocks the statistics for the given learner enrollments so they are recomputed against the current path progress.

put/api/v2/paths/{pathId}/enrollments/unlock-stats

Request

  • Base URL
    https://app.360learning.com
  • URL
    https://app.360learning.com/api/v2/paths/{pathId}/enrollments/unlock-stats
  • Auth
    OAuth 2
    Client credentials
    Token URL: /api/v2/oauth2/token

Path parameters

pathIdstring ObjectId required
Example:507f1f77bcf86cd799439011

The unique ID of the path.

Headers

360-api-version'v2.0' required

The version of the API.

Request body

commentstring

The reason why the statistics have been unlocked. It is stored on the unlock event of every given enrollment.

enrollmentIdsstring[] required

The unique IDs of the user enrollments in the path.

Example request

{
  "comment": "Unlocked through the public API",
  "enrollmentIds": [
    "507f1f77bcf86cd799439011"
  ]
}

Response

The statistics of the given enrollments have been unlocked and recomputed against the current path progress.

Changes