Skip to content

ulams h5p

Generated from front/cli (ulams schema)

List H5P contents with the number of topics using each.

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

Endpoints: GET /api/admin/h5p/contents.

Flag Type Required Description
--title string
--main-library string machine name, e.g. H5P.MultiChoice
--author-id integer only with h5p_list
--page integer
--per-page integer 0 returns all rows without pagination
--order-by string
--order string
Terminal window
# List H5P contents with the number of topics using each
ulams h5p contents --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"title": {
"type": "string"
},
"main_library": {
"type": "string",
"description": "machine name, e.g. H5P.MultiChoice"
},
"author_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "only with h5p_list"
},
"page": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"per_page": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "0 returns all rows without pagination"
},
"order_by": {
"type": "string",
"enum": [
"id",
"title",
"main_library",
"library",
"user_id",
"created_at",
"updated_at",
"count_h5p"
]
},
"order": {
"type": "string",
"enum": [
"ASC",
"DESC"
]
}
},
"additionalProperties": {}
}

Delete H5P contents that no topic uses.

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

Endpoints: DELETE /api/admin/h5p/unused.

Terminal window
# Delete H5P contents that no topic uses
ulams h5p unused --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": {}
}