---
title: "Unlock enrollment statistics"
method: PUT
path: "/api/v2/paths/{pathId}/enrollments/unlock-stats"
tags: ["Paths"]
---

# Unlock enrollment statistics

`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`

> 🔑
>
> Required OAuth scope: `pathStats:write`.

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

## Path parameters

- `pathId` string, ObjectId, required

## Headers

- `360-api-version` 'v2.0', required

## Request body

- UnlockEnrollmentStatsBody
  - `comment` string: The reason why the statistics have been unlocked. It is stored on the unlock event of every given enrollment.
  - `enrollmentIds` string[], required: The unique IDs of the user enrollments in the path.

## Response `204`

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

## Other responses

- `400`: The `lockStats` option is not available in your platform.
- `401`: The given access token is either missing, invalid, has expired, or has been revoked.
- `403`: The given access token does not have the required OAuth scope to execute the request.
- `404`: The server cannot find the requested resource.
- `429`: The client has sent too many requests in a short amount of time.

## Changes

- **2026-11-03** `d827a4a84180`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/360learning/apis/core-api/changes/api/v2/paths/:pathId/enrollments/unlock-stats/put.md)

---

[API](https://skmtc.dev/360learning/apis/core-api.md) - [All operations](https://skmtc.dev/360learning/apis/core-api/llms.txt) - [OpenAPI document](https://skmtc.dev/360learning/apis/core-api/revisions/d827a4a84180?raw)
