Skip to main content

Content levels API

Read the level schemes and set the level a Lesson is written for. Every request needs a signed-in user (401 otherwise).

List level schemes​

GET /api/content/level-schemes returns each Active scheme with its Active levels in rank order. Names come back in the language of the Accept-Language header and fall back to en-US.

Three schemes are seeded: NRS Educational Functioning Levels (ABE) with Levels 1 to 6, CCR Levels A to E, and Financial Wellness proficiency (Beginner, Intermediate, Advanced). Each scheme and level has a stable id, a key that is never translated, a name and a rank.

Set or clear a Lesson level​

Use the Lesson update, PATCH /api/content/lessons/{id}, with rowVersion and a level:

{
"rowVersion": "...",
"level": { "scheme_id": "...", "from_level_id": "...", "to_level_id": "..." }
}
  • A single level has the same from_level_id and to_level_id. A range, such as GED at NRS 2 to 6, uses two different levels.
  • "level": null clears the level. Leaving level out leaves it unchanged.
  • Lesson reads return the level in the learnerLevel property of the record (scheme_id, from_level_id, to_level_id), or no level when none is set.
  • Only aztec_staff can set or clear a level.
StatusWhen
401Not signed in.
403The caller is not aztec_staff.
404The scheme or a level does not exist.
409rowVersion is stale.
422The from and to levels are in different schemes, from ranks above to.

Telemetry​

Meter Aztec.Platform.ContentManagement: lesson_level_set, with the scheme and whether the level is a single level or a range.