List Auto Assignment rules
Rules that enroll learners automatically, with conditions and unenroll setting.
GET https://cotlet.dev/api/v1/thought-industries/auto-assignment-rules
Reads the Auto Assignment page. Each rule has its internal name, the courses or learning paths it assigns, its conditions, whether all or at least one must match, and whether it unenrolls learners who stop matching. The page exists only on instances where Auto Assignment is switched on, and holds at most 50 rules. Without it the call returns an error that says so.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/thought-industries/auto-assignment-rules \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("thought-industries", "list_auto_assignment_rules") const result = await cotlet.call('thought-industries', 'list_auto_assignment_rules'); cotlet call thought-industries list_auto_assignment_rules Example response
{
"rules": [
{
"name": "Developers to Cybersecurity Fundamentals",
"assigns": [
"Cybersecurity Fundamentals (learning path)"
],
"conditions": [
"User ref#1 is equal to Developer"
],
"match": "all",
"unenroll_when_unmet": true
}
]
}