ulams course-variant-groups
Generated from front/cli (ulams schema)
ulams course-variant-groups assignments-list
Section titled “ulams course-variant-groups assignments-list”Who is in which variant (current assignments, with the source of each).
Kind: read (idempotent). Stability: stable. MCP tool: course_variant_groups_assignments_list. Scopes: learner:read.
Endpoints: GET /api/admin/course-variant-groups/{group}/assignments.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes | |
--user-id |
integer | ||
--page |
integer |
# Who is in which variant (current assignments, with the source of each)ulams course-variant-groups assignments-list text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" }, "user_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "page": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "group" ], "additionalProperties": {}}ulams course-variant-groups assignments-set
Section titled “ulams course-variant-groups assignments-set”Assign learners or user groups to a variant; the learner sees it as assigned by their organisation.
Kind: write (idempotent). Stability: stable. MCP tool: course_variant_groups_assignments_set. Scopes: learner:write.
Endpoints: PUT /api/admin/course-variant-groups/{group}/assignments.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes | |
--course-id |
integer | ||
--group-ids |
array | User groups; their members (and subgroups) are assigned | |
--user-ids |
array |
# Assign learners or user groups to a variant; the learner sees it as assigned by their organisationulams course-variant-groups assignments-set text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" }, "course_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "group_ids": { "type": "array", "items": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "description": "User groups; their members (and subgroups) are assigned" }, "user_ids": { "type": "array", "items": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } } }, "required": [ "group" ], "additionalProperties": {}}ulams course-variant-groups get
Section titled “ulams course-variant-groups get”One family: settings, variant courses, where learners are and the placement check.
Kind: read (idempotent). Stability: stable. MCP tool: course_variant_groups_get. Scopes: learner:read.
Endpoints: GET /api/admin/course-variant-groups/{group}.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes |
# One family: settings, variant courses, where learners are and the placement checkulams course-variant-groups get text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" } }, "required": [ "group" ], "additionalProperties": {}}ulams course-variant-groups list
Section titled “ulams course-variant-groups list”List the families of course variants, optionally the one a course belongs to.
Kind: read (idempotent). Stability: stable. MCP tool: course_variant_groups_list. Scopes: learner:read.
Endpoints: GET /api/admin/course-variant-groups.
| Flag | Type | Required | Description |
|---|---|---|---|
--course-id |
integer | ||
--page |
integer |
# List the families of course variants, optionally the one a course belongs toulams course-variant-groups list --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "course_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "page": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {}}ulams course-variant-groups placement
Section titled “ulams course-variant-groups placement”The placement questions with their answer key and citations.
Kind: read (idempotent). Stability: stable. MCP tool: course_variant_groups_placement. Scopes: learner:read.
Endpoints: GET /api/admin/course-variant-groups/{group}/placement.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes |
# The placement questions with their answer key and citationsulams course-variant-groups placement text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" } }, "required": [ "group" ], "additionalProperties": {}}ulams course-variant-groups placement-rebuild
Section titled “ulams course-variant-groups placement-rebuild”Choose the placement questions again from the family’s cited quiz questions (no model call).
Kind: write. Stability: stable. MCP tool: course_variant_groups_placement_rebuild. Scopes: learner:write.
Endpoints: POST /api/admin/course-variant-groups/{group}/placement/rebuild.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes | |
--body |
unknown | Request body (JSON) |
# Choose the placement questions again from the family's cited quiz questions (no model call)ulams course-variant-groups placement-rebuild text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" }, "body": { "description": "Request body (JSON)" } }, "required": [ "group" ], "additionalProperties": {}}ulams course-variant-groups rules-add
Section titled “ulams course-variant-groups rules-add”Create an assignment rule.
Kind: write. Stability: stable. MCP tool: course_variant_groups_rules_add. Scopes: learner:write.
Endpoints: POST /api/admin/course-variant-groups/{group}/rules.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes | |
--active |
boolean | ||
--conditions |
array | yes | All must hold |
--course-id |
integer | yes | The variant course it assigns |
--name |
string | yes | |
--position |
integer |
# Create an assignment ruleulams course-variant-groups rules-add text --conditions text --course-id text --name Example --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" }, "active": { "type": "boolean" }, "conditions": { "type": "array", "items": { "type": "object", "properties": { "attribute": { "type": "string" }, "operator": { "type": "string", "enum": [ "equals", "not_equals", "in", "contains", "starts_with", "ends_with", "exists" ] }, "value": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": {} }, "description": "All must hold" }, "course_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991, "description": "The variant course it assigns" }, "name": { "type": "string" }, "position": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "group", "conditions", "course_id", "name" ], "additionalProperties": {}}ulams course-variant-groups rules-delete
Section titled “ulams course-variant-groups rules-delete”Delete an assignment rule (learners already assigned stay).
Kind: destructive (idempotent). Stability: stable. MCP tool: course_variant_groups_rules_delete. Scopes: learner:write.
Endpoints: DELETE /api/admin/course-variant-groups/{group}/rules/{rule}.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes | |
--rule (positional) |
integer | yes |
# Delete an assignment rule (learners already assigned stay)ulams course-variant-groups rules-delete text 1 --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" }, "rule": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "group", "rule" ], "additionalProperties": {}}ulams course-variant-groups rules-evaluate
Section titled “ulams course-variant-groups rules-evaluate”Preview or run a rule now.
Kind: write. Stability: stable. MCP tool: course_variant_groups_rules_evaluate. Scopes: learner:write.
Endpoints: POST /api/admin/course-variant-groups/{group}/rules/{rule}/evaluate.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes | |
--rule (positional) |
integer | yes | |
--dry-run |
boolean |
# Preview or run a rule nowulams course-variant-groups rules-evaluate text 1 --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" }, "rule": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "dry_run": { "type": "boolean" } }, "required": [ "group", "rule" ], "additionalProperties": {}}ulams course-variant-groups rules-list
Section titled “ulams course-variant-groups rules-list”List the assignment rules of a family.
Kind: read (idempotent). Stability: stable. MCP tool: course_variant_groups_rules_list. Scopes: learner:read.
Endpoints: GET /api/admin/course-variant-groups/{group}/rules.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes |
# List the assignment rules of a familyulams course-variant-groups rules-list text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" } }, "required": [ "group" ], "additionalProperties": {}}ulams course-variant-groups rules-set
Section titled “ulams course-variant-groups rules-set”Update an assignment rule.
Kind: write (idempotent). Stability: stable. MCP tool: course_variant_groups_rules_set. Scopes: learner:write.
Endpoints: PUT /api/admin/course-variant-groups/{group}/rules/{rule}.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes | |
--rule (positional) |
integer | yes | |
--body |
unknown | Request body (JSON) |
# Update an assignment ruleulams course-variant-groups rules-set text 1 --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" }, "rule": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "body": { "description": "Request body (JSON)" } }, "required": [ "group", "rule" ], "additionalProperties": {}}ulams course-variant-groups update
Section titled “ulams course-variant-groups update”Change the settings of a family.
Kind: write (idempotent). Stability: stable. MCP tool: course_variant_groups_update. Scopes: learner:write.
Endpoints: PUT /api/admin/course-variant-groups/{group}.
| Flag | Type | Required | Description |
|---|---|---|---|
--group (positional) |
string | yes | |
--hints-enabled |
boolean | ||
--lock-assigned |
boolean | A variant assigned by an admin or a rule cannot be changed by the learner | |
--pinned-course-id |
integer | Mandatory training counts only this course of the family; null lets any variant count | |
--placement-enabled |
boolean |
# Change the settings of a familyulams course-variant-groups update text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "group": { "type": "string" }, "hints_enabled": { "type": "boolean" }, "lock_assigned": { "type": "boolean", "description": "A variant assigned by an admin or a rule cannot be changed by the learner" }, "pinned_course_id": { "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ], "description": "Mandatory training counts only this course of the family; null lets any variant count" }, "placement_enabled": { "type": "boolean" } }, "required": [ "group" ], "additionalProperties": {}}