This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.
Use an article step when you want to add written content to a section.
To create an article step:
- Create or identify the target program and section.
- Call Create Step, specifying the section ID in
step.sectionId and ARTICLE in step.stepType.
- Specify the title in
step.description.title and, optionally, rich text content in step.description.details.
- Save the returned step ID for later update, move, or delete calls.
Use a quiz step when you want the step to point to a separately managed quiz.
To create a quiz step:
- Create or clone a quiz with the Quiz API.
- Save the returned quiz ID.
- Call Create Step, specifying the section ID in
step.sectionId and QUIZ in step.stepType.
- Specify the saved quiz ID in
step.quizOptions.id.
- Optionally specify the passing threshold in
step.quizOptions.passingGrade.
- Retrieve the created step with Get Step to confirm that it references the quiz.
Use move operations to change the sequence of steps. You can move a step within its current section or to another section.
To reorder a step:
- Retrieve the target section's steps with Query Steps, filtering by
sectionId and sorting by ordering.
- Identify the step to move and the step that should come immediately before it.
- Call Move Step, specifying the step ID, target section ID, and
afterStepId.
- To make the moved step the first step in the section, omit
afterStepId.
- Use the returned step object to confirm the new section and ordering values.
Use a bulk update when you need to modify several steps together. Each update is processed separately and has its own result.
To update multiple steps:
- Retrieve the current steps with Query Steps and save each step's latest
revision.
- Build a Bulk Update Steps request with one entry per step.
- For each entry, include the step ID, latest revision, and the fields to update in a partial step object.
- Set
returnEntity to true if you need each updated step in the response.
- Submit the bulk request and check the per-item results and bulk metadata in the response.