Skip to content

ulams quizzes

Generated from front/cli (ulams schema)

Get gift quiz by id.

Kind: read (idempotent). Stability: stable. MCP tool: quizzes_get. Scopes: courses:read.

Endpoints: GET /api/admin/gift-quizes/{id}.

Flag Type Required Description
--id (positional) integer yes
Terminal window
# Get gift quiz by id
ulams quizzes get 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"id"
],
"additionalProperties": {}
}

List gift quizes of a course (for report filter select).

Kind: read (idempotent). Stability: stable. MCP tool: quizzes_list. Scopes: courses:read.

Endpoints: GET /api/admin/gift-quizes.

Flag Type Required Description
--course-id integer yes
Terminal window
# List gift quizes of a course (for report filter select)
ulams quizzes list --course-id text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"course_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"course_id"
],
"additionalProperties": {}
}

Update gift quiz by id.

Kind: write (idempotent). Stability: stable. MCP tool: quizzes_update. Scopes: courses:write.

Endpoints: PUT /api/admin/gift-quizes/{id}.

Flag Type Required Description
--id (positional) integer yes
--counts-to-grade boolean
--max-attempts integer
--max-execution-time integer
--min-pass-score number
--randomize-order boolean
--value string
--weight integer
Terminal window
# Update gift quiz by id
ulams quizzes update 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"counts_to_grade": {
"type": "boolean"
},
"max_attempts": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"max_execution_time": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"min_pass_score": {
"type": "number"
},
"randomize_order": {
"type": "boolean"
},
"value": {
"type": "string"
},
"weight": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"id"
],
"additionalProperties": {}
}