← Learnosity Build AideCONTENT HISTORY
WHAT CHANGED
Update to Learnosity Build Aide
Snapshot Nov 25, 2026 · 07:29 UTC · version 1.1.0
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save Learnosity Build Aide and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Guide a developer migrating content into a Learnosity item bank via the Data API — covering bank-to-bank copies, importing from another platform via QTI, the required save order, and the SET ITEMS step that makes imported questions visible in Authoring.",
"included_files": [],
"name": "content-migration",
"skill_md_contents": "---\nname: content-migration\ndescription: Guide a developer migrating content into a Learnosity item bank via the Data API — covering bank-to-bank copies, importing from another platform via QTI, the required save order, and the SET ITEMS step that makes imported questions visible in Authoring.\n---\n# Migrate Content Into a Learnosity Item Bank\n**Goal:** Guide a developer migrating content into a Learnosity\nitem bank via the Data API — covering bank-to-bank copies, importing from\nanother platform via QTI, the required save order, and the SET ITEMS step\nthat makes imported questions visible in Authoring.\n**APIs:** `data-api`\n\n## When to use this skill\nUse this when a developer wants to:\n- Copy content from one Learnosity item bank to another (e.g. a new\n consumer, a staging-to-production move, or splitting a bank).\n- Import existing content from another platform (a data dump) into a\n Learnosity item bank.\n- Understand why questions they imported via JSON are not showing up in the\n Authoring interface (answer: they have not been through SET ITEMS — see\n Step 5).\n\n## Two migration paths\nThis skill covers two starting points, which differ in whether a Learnosity\n**source** bank exists:\n\n- **Bank-to-bank copy** (existing Learnosity content): you read from a source\n bank with a `get` and write to a destination bank with a `set`. This path\n uses **both** `source_credentials` (for every `get`) and\n `destination_credentials` (for every `set`).\n- **Import from another platform** (new customer, e.g. a QTI export): there is\n **no Learnosity source bank**, so there are **no `source_credentials` and no\n `get` calls**. You convert the source content to Learnosity JSON off-platform\n (Step 3) and only `set` it into the destination with\n `destination_credentials`.\n\n## Key idea: the Data API is get/set per data type\nThe Data API is **not** a REST API. Every request is a signed **HTTP POST**;\nthe operation is selected by the `action` request parameter — `get` to read,\n`set` to write — not by the HTTP method. Each item bank data type has one\nendpoint that serves both actions. A bank-to-bank migration is: `get` from\nthe source, `set` into the destination, one data type at a time, in dependency\norder. An import migration skips the `get` action and only sets. Use the\nofficial SDK, which sends the POST and applies the signature for you.\n\n## Sequence\n\n### Step 1: Set up credentials (`data-api`)\nGather the `consumer_key` and `consumer_secret` for the **destination** item\nbank — you always need these to `set` content. If you are copying from an\nexisting Learnosity bank (bank-to-bank), also gather the **source** bank's\ncredentials for the `get` calls; if you are importing from another platform,\nthere is no source bank and you only need the destination credentials. Every\nData API call is signed server-side with the credentials of the bank it\ntargets. Never send a `consumer_secret` to the browser or across the network —\nsee Signing below.\n\n### Step 1a: Target the right item bank when a key has multiple (`data-api`)\nA single consumer key can have access to more than one item bank. If you do\n**not** say which one, the call goes to that key's **primary** item bank — so a\nmigration can silently write to (or read from) the wrong bank.\n\nPass `organisation_id` (the target item bank's id) in the **request packet** —\nnot the security packet — to target a specific bank. It applies to every `get`\nand `set` in this skill (tags, questions, features, items, activities, assets),\non both the source and the destination side.\n\n- Omit `organisation_id` → the call targets the key's **primary** item bank.\n- Set `organisation_id` → the call targets that specific bank. The consumer key\n must have access to the bank, or the call is rejected.\n\nWhen the source and destination are different keys, set `organisation_id` per\nside using each key's target bank id.\n\n### Step 2 (optional): Pre-create tags and tag hierarchies (`data-api`)\nTags can be created on the fly when saving items and activities, but\npre-creating them first is the clearest approach and avoids surprises.\n- **read:** `action: get` on `/itembank/tagging/tags`\n- **write:** `action: set` on `/itembank/tagging/tags`\n\nMake sure all tag types and tag names exist in the destination before you\nsave items or activities.\n\n**Tag hierarchies have no create action.** `action: get` on\n`/itembank/tagging/hierarchies` reads them, but there is no `set` action —\nhierarchies must be recreated manually in the Author Site by a user with the\n**Tag Hierarchy Manager** role. Flag this to the developer as a manual step;\nit cannot be automated through the Data API.\n\n### Step 3 (new-customer path only): Convert source content from QTI\nIf the developer is importing from another platform rather than copying\nbetween Learnosity banks, convert the source QTI into Learnosity JSON first,\nthen feed that JSON into Steps 4–5.\n\n- Use the maintained library **`@learnosity/lib-qti-converter`** (install:\n `npm install @learnosity/lib-qti-converter`; requires Node >= 22). It\n converts QTI ↔ Learnosity JSON and ships both a CLI and an importable\n library:\n - **CLI:** `lcon qti-to-learnosity --in item.xml --out item.json --pretty`\n - **Library:** `convertQtiToLearnosity(qtiXmlString, { qtiVersion: '2.2' })`\n returns `{ output, diagnostics }`; check `diagnostics` for unmapped or\n partially-supported constructs.\n- Do **not** use the older `learnosity-qti` package, and do **not** use the\n Data API for QTI conversion — the `/itembank/conversion/fromqti` and\n `/itembank/conversion/toqti` endpoints have been removed and will return an\n \"endpoint removed\" error.\n\nWhen hand-building or converting question JSON, each question type has a set\nof **required properties**. Missing required properties is a common cause of\nimport failures. Validate the converted JSON against the target question\ntype's schema before saving. If unsure which properties are mandatory for a\nquestion type, look it up in the Learnosity Questions API reference for that\ntype rather than guessing.\n\n### Step 4: Migrate questions and features (`data-api`)\nSave questions and features into the destination **before** the items that\nuse them — an item that references a question/feature that does not yet\nexist will fail.\n- **Questions** — `action: get` / `action: set` on `/itembank/questions`\n- **Features** — `action: get` / `action: set` on `/itembank/features`\n\nYou can drive these by a list of question/feature references, or by passing\nitem references to the get endpoint to retrieve the questions/features\nbelonging to those items. The references you save here (`question_references`)\nare what the items in Step 5 point at.\n\n### Step 5: Migrate items, then activities — including SET ITEMS (`data-api`)\nSave in this order: **items first, then activities** (an activity can only\ncontain items that already exist).\n- **Items** — `action: get` / `action: set` on `/itembank/items` (on `get`,\n optionally use the `include` object — `include.items:\n [\"dynamic_content_data\"]` — to return dynamic content data)\n- **Activities** — `action: get` / `action: set` on `/itembank/activities`\n\n> **SET ITEMS is what makes content visible in Authoring.**\n> Importing question JSON alone is **not** enough. A question only appears in\n> the Authoring interface once it has been set into an item via **SET ITEMS**\n> (`action: set` on `/itembank/items`). If a developer reports that imported questions are\n> missing from Authoring, the cause is almost always that the questions were\n> saved but never set into an item. Always include this step.\n\nThere is also a combined convenience endpoint, `/itembank/itemsandwidgets`\n(`action: set`), which saves questions/features and items together in a single\nrequest while preserving the correct internal ordering — useful when migrating\nself-contained items.\n\nYou may limit what you migrate by **status**: `published`, `unpublished`,\n`archived` (e.g. copy only `published` content, or exclude `archived`).\n\n### Step 6: Handle assets (`data-api`)\n- **Assets** (images, audio, video) referenced by questions/items/features\n are **not** copied inside the migrated JSON. Two options:\n - Absolute asset URLs keep working across organizations, so you may leave\n them as-is.\n - To move the files themselves, request upload URLs via `action: get` on\n `/itembank/upload/assets` and bulk-upload the assets.\n\n## Batching\nMigrate in batches (around 50 records at a time) and repeat until complete.\nThe SDK's Data API helper exposes a recursive request that follows the\n`next` token in each response's `meta` object automatically, so you do not\nhave to page manually:\n- single call: `request(endpoint, security, secret, requestPacket, action)`\n- paginated: `requestRecursive(endpoint, security, secret, requestPacket,\n action)` — loops on `meta.next` until all matching data is returned.\n\n## Signing\nEvery Data API request must carry a server-side HMAC-SHA256 signature. You\nnever expose your `consumer_secret` to the browser. Use the official\nLearnosity SDK for your language — it builds the signature for you, so you do\nnot hand-roll the hashing.\n\nFor the **Data API**, the security packet needs only:\n\n| Field | Notes |\n|---|---|\n| `consumer_key` | The key of the bank this call targets (source for get, destination for set). |\n| `domain` | The domain the request is sent from. |\n\nUnlike the browser-facing APIs (Items, Author, Reports), the Data API\nsecurity packet does **not** require a `user_id`. Pass the security packet,\nyour request packet, the `consumer_secret`, and the `action` (`get` or `set`)\nto the SDK's Data API helper; it signs and sends the request. For the full\nmechanics of signature construction, see\n[Security and Authentication](https://help.learnosity.com/hc/en-us/articles/360000754738-Security-and-Authentication).\nAn official SDK is available for PHP, Python, Node.js, Java, C#/.NET, and Ruby.\n\n## Shared identifiers\n| Name | Produced by step | Consumed by step(s) | Description |\n|---|---|---|---|\n| `source_credentials` | 1 | 2, 4, 5, 6 | consumer_key + consumer_secret for the bank you copy FROM; signs every `get` action (including fetching assets in Step 6). Bank-to-bank path only (absent for QTI/other-platform imports). |\n| `destination_credentials` | 1 | 2, 4, 5, 6 | consumer_key + consumer_secret for the bank you copy TO; signs every `set` action and the asset upload URL request. |\n| `question_references` | 4 | 5 | References of saved questions/features; items must reference existing ones. |\n| `item_references` | 5 | 5 | References of items created by SET ITEMS; activities contain them and only referenced items appear in Authoring. |\n\n## Init blueprints\n### `data-api` — get items from the source bank\n```yaml\nendpoint: https://data.learnosity.com/latest/itembank/items\naction: get\nsecurity:\n consumer_key: SOURCE_CONSUMER_KEY\n domain: your-domain.com\n # signature generated by the SDK from SOURCE_CONSUMER_SECRET\nrequest:\n # Optional. Targets a specific source bank when the key has several;\n # omit to use the key's primary item bank.\n organisation_id: SOURCE_ITEMBANK_ID\n limit: 50\n status:\n - published\n # Optional. `include.items` lists extra Item properties to return; its only\n # valid key is `items`. Use `dynamic_content_data` to pull dynamic content.\n # Omit `include` entirely if you don't need these extra properties.\n include:\n items:\n - dynamic_content_data\n```\n\n### `data-api` — set items into the destination bank (SET ITEMS)\n```yaml\nendpoint: https://data.learnosity.com/latest/itembank/items\naction: set\nsecurity:\n consumer_key: DESTINATION_CONSUMER_KEY\n domain: your-domain.com\n # signature generated by the SDK from DESTINATION_CONSUMER_SECRET\nrequest:\n # Optional. Targets a specific destination bank when the key has several;\n # omit to use the key's primary item bank.\n organisation_id: DESTINATION_ITEMBANK_ID\n items:\n - reference: item_reference_from_source\n status: published\n questions:\n - reference: question_reference_saved_in_step_4\n # questions/features referenced here must already be saved (Step 4)\n```\n"
}SHA-256 of public snapshot: f152c8a534619a4c830b2496dba7d4cfc6805fe3867e134be94cf54e7c4dfcad