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

read

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
curl https://cotlet.dev/api/v1/thought-industries/auto-assignment-rules \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("thought-industries", "list_auto_assignment_rules")
Node.js
const result = await cotlet.call('thought-industries', 'list_auto_assignment_rules');
CLI
cotlet call thought-industries list_auto_assignment_rules

Example response

JSON

{
  "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
    }
  ]
}

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.