Skip to content

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
Terminal window
# Who is in which variant (current assignments, with the source of each)
ulams course-variant-groups assignments-list text --json
Input 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
Terminal window
# Assign learners or user groups to a variant; the learner sees it as assigned by their organisation
ulams course-variant-groups assignments-set text --json
Input 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": {}
}

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
Terminal window
# One family: settings, variant courses, where learners are and the placement check
ulams course-variant-groups get text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"group": {
"type": "string"
}
},
"required": [
"group"
],
"additionalProperties": {}
}

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
Terminal window
# List the families of course variants, optionally the one a course belongs to
ulams course-variant-groups list --json
Input 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": {}
}

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
Terminal window
# The placement questions with their answer key and citations
ulams course-variant-groups placement text --json
Input 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)
Terminal window
# Choose the placement questions again from the family's cited quiz questions (no model call)
ulams course-variant-groups placement-rebuild text --json
Input 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": {}
}

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
Terminal window
# Create an assignment rule
ulams course-variant-groups rules-add text --conditions text --course-id text --name Example --json
Input 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": {}
}

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
Terminal window
# Delete an assignment rule (learners already assigned stay)
ulams course-variant-groups rules-delete text 1 --json
Input 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
Terminal window
# Preview or run a rule now
ulams course-variant-groups rules-evaluate text 1 --json
Input 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": {}
}

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
Terminal window
# List the assignment rules of a family
ulams course-variant-groups rules-list text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"group": {
"type": "string"
}
},
"required": [
"group"
],
"additionalProperties": {}
}

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)
Terminal window
# Update an assignment rule
ulams course-variant-groups rules-set text 1 --json
Input 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": {}
}

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
Terminal window
# Change the settings of a family
ulams course-variant-groups update text --json
Input 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": {}
}