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_idandto_level_id. A range, such as GED at NRS 2 to 6, uses two different levels. "level": nullclears the level. Leavinglevelout leaves it unchanged.- Lesson reads return the level in the
learnerLevelproperty of the record (scheme_id,from_level_id,to_level_id), or no level when none is set. - Only
aztec_staffcan set or clear a level.
| Status | When |
|---|---|
| 401 | Not signed in. |
| 403 | The caller is not aztec_staff. |
| 404 | The scheme or a level does not exist. |
| 409 | rowVersion is stale. |
| 422 | The 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.