Reset enrollment progress
Reset the progress of enrollments so learners can take the course again.
POST https://cotlet.dev/api/v1/ispring/enrollment/reset
write Confirm
Resets the progress of each enrollment_id from list_enrollments and returns their new status, not_started. The enrollment, its start date and its due date stay. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| enrollment_ids string[] required | string[] | Enrollments from list_enrollments. |
Request
curl -X POST https://cotlet.dev/api/v1/ispring/enrollment/reset \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"enrollment_ids":["enrollment ids"]}' result = client.call("ispring", "reset_enrollment", {"enrollment_ids":["enrollment ids"]}) const result = await cotlet.call('ispring', 'reset_enrollment', {"enrollment_ids":["enrollment ids"]}); cotlet call ispring reset_enrollment --data '{"enrollment_ids":["enrollment ids"]}' Example response
{
"reset": 1,
"enrollments": [
{
"enrollment_id": "e_70a0f1",
"status": "not_started"
}
]
}