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

Parameters: reset_enrollment
NameTypeDescription
enrollment_ids string[] required string[] Enrollments from list_enrollments.

Request

cURL
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"]}'
Python
result = client.call("ispring", "reset_enrollment", {"enrollment_ids":["enrollment ids"]})
Node.js
const result = await cotlet.call('ispring', 'reset_enrollment', {"enrollment_ids":["enrollment ids"]});
CLI
cotlet call ispring reset_enrollment --data '{"enrollment_ids":["enrollment ids"]}'

Example response

JSON

{
  "reset": 1,
  "enrollments": [
    {
      "enrollment_id": "e_70a0f1",
      "status": "not_started"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.