Remove learner from waitlist
Take a learner off the waitlist of one piece of content.
DELETE https://cotlet.dev/api/v1/thought-industries/contents/{content_id}/waitlists
write Confirm
Opens the learner profile, goes to Waitlisted Content on the Access tab and clicks the trash icon next to the content, then confirms. add_to_waitlist puts the learner back, but at the end of the list. 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 DELETE "https://cotlet.dev/api/v1/thought-industries/contents/content_8c41d2/waitlists?learner=learner" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("thought-industries", "remove_from_waitlist", {"learner":"learner","content_id":"content_8c41d2"}) const result = await cotlet.call('thought-industries', 'remove_from_waitlist', {"learner":"learner","content_id":"content_8c41d2"}); cotlet call thought-industries remove_from_waitlist --data '{"learner":"learner","content_id":"content_8c41d2"}' Example response
{
"learner": "sam.okafor@example.com",
"content": "June webinar",
"waitlisted": false
}