Add learner to waitlist
Put a learner on the waitlist of content that has one.
POST https://cotlet.dev/api/v1/thought-industries/contents/{content_id}/waitlists
write Confirm
Opens the learner profile, goes to the Access tab and adds the content under Waitlisted Content. Only content with an active waitlist can be added. The learner is enrolled only when someone buys the content or a manager provisions it, for example with enroll_learner. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| learner string required | string | Learner email or learner_id from list_learners. |
| content_id string required | string | Course or other content ID from list_courses. |
Request
curl -X POST https://cotlet.dev/api/v1/thought-industries/contents/content_8c41d2/waitlists \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"learner":"learner"}' result = client.call("thought-industries", "add_to_waitlist", {"learner":"learner","content_id":"content_8c41d2"}) const result = await cotlet.call('thought-industries', 'add_to_waitlist', {"learner":"learner","content_id":"content_8c41d2"}); cotlet call thought-industries add_to_waitlist --data '{"learner":"learner","content_id":"content_8c41d2"}' Example response
{
"learner": "sam.okafor@example.com",
"content": "June webinar",
"waitlisted": true
}