Set enrollment complete

Set an enrollment to Completed, Passed or Failed with a date and a note.

PUT https://cotlet.dev/api/v1/learnupon/enrollments/{enrollment_id}/complete

write Confirm

Marks one enrollment as finished, as the Manual Enrollment Completion dialog does. status is completed, passed or failed; passed takes a score. award_badges turns on Award associated badges. A manager needs the permission to mark learners complete. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: set_enrollment_complete
NameTypeDescription
enrollment_id string required string Enrollment id from list_enrollments.
status enum required enum completed, passed or failed.
score number number Score, for status passed.
date date date Completion date. Default: today.
notes string string Note saved with the completion.
award_badges boolean boolean Award associated badges. Default: false.

Request

cURL
curl -X PUT https://cotlet.dev/api/v1/learnupon/enrollments/enrollment_8c41d2/complete \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"completed"}'
Python
result = client.call("learnupon", "set_enrollment_complete", {"enrollment_id":"enrollment_8c41d2","status":"completed"})
Node.js
const result = await cotlet.call('learnupon', 'set_enrollment_complete', {"enrollment_id":"enrollment_8c41d2","status":"completed"});
CLI
cotlet call learnupon set_enrollment_complete --data '{"enrollment_id":"enrollment_8c41d2","status":"completed"}'

Example response

JSON

{
  "enrollment_id": "90433",
  "status": "completed",
  "date": "2026-10-20",
  "notes": "Attended the Tuesday workshop"
}

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.