Get course enrollment settings

Enrollment limit and waitlist setting of one course.

GET https://cotlet.dev/api/v1/thought-industries/contents/{content_id}/course

read

Opens the content and reads its Enrollment step > Access tab: whether Limit Enrollments is on, the maximum number of enrollments and whether Enable Waitlisting is on. These settings belong to a session, so a webinar with several sessions returns one entry per session.

Parameters

Parameters: get_course
NameTypeDescription
content_id string required string Course or other content ID from list_courses.

Request

cURL
curl https://cotlet.dev/api/v1/thought-industries/contents/content_8c41d2/course \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("thought-industries", "get_course", {"content_id":"content_8c41d2"})
Node.js
const result = await cotlet.call('thought-industries', 'get_course', {"content_id":"content_8c41d2"});
CLI
cotlet call thought-industries get_course --data '{"content_id":"content_8c41d2"}'

Example response

JSON

{
  "content_id": "4b1c2d3e-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
  "title": "Safety basics",
  "type": "course",
  "sessions": [
    {
      "name": "Default",
      "limit_enrollments": false,
      "max_enrollments": null,
      "waitlisting": false
    }
  ]
}

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.