Approve enrollment requests

Approve pending course enrollment requests, one or many.

POST https://cotlet.dev/api/v1/absorb-lms/enrollment-requests/approve

write Confirm

Approves the listed requests as the Approve and mass Approve actions of the Course Approvals report do. The learner gets access to the course and Absorb sends its standard Enrollment message. Requests that were handled meanwhile are skipped and listed. Available actions depend on your Admin role. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: approve_enrollment_requests
NameTypeDescription
request_ids array required array request_id values from list_course_approvals.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/absorb-lms/enrollment-requests/approve \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"request_ids":["a41f8c2d-6e07-4b93-8d15-3c7e9a2b5f01","b52a9d3e-7f18-4ca4-9e26-4d8f0b3c6a12"]}'
Python
result = client.call("absorb-lms", "approve_enrollment_requests", {"request_ids":["a41f8c2d-6e07-4b93-8d15-3c7e9a2b5f01","b52a9d3e-7f18-4ca4-9e26-4d8f0b3c6a12"]})
Node.js
const result = await cotlet.call('absorb-lms', 'approve_enrollment_requests', {"request_ids":["a41f8c2d-6e07-4b93-8d15-3c7e9a2b5f01","b52a9d3e-7f18-4ca4-9e26-4d8f0b3c6a12"]});
CLI
cotlet call absorb-lms approve_enrollment_requests --data '{"request_ids":["a41f8c2d-6e07-4b93-8d15-3c7e9a2b5f01","b52a9d3e-7f18-4ca4-9e26-4d8f0b3c6a12"]}'

Example response

JSON

{
  "approved": [
    {
      "request_id": "a41f8c2d-6e07-4b93-8d15-3c7e9a2b5f01",
      "learner": "Priya Nair",
      "course": "Data Privacy Essentials"
    },
    {
      "request_id": "b52a9d3e-7f18-4ca4-9e26-4d8f0b3c6a12",
      "learner": "Luis Ortega",
      "course": "Data Privacy Essentials"
    }
  ],
  "skipped": []
}

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.