> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/introduction.md

## Article Content:

# About the Program Steps API

The Program Steps API manages the individual content units inside an online program section. A step can represent article content, video content, or a quiz. Use the API to create and update steps, retrieve and query existing steps, move steps within a section, clone reusable step content, and perform bulk create and bulk update operations.

Steps belong to sections, and sections belong to programs. This means most step workflows start with a program and section that already exist. The API works closely with the Program Sections API for content structure and with the Quiz API for quiz-based steps.

With the Program Steps API, you can:
- Create article, video, and quiz steps inside a section.
- Retrieve and query steps for a program or section.
- Reorder steps within a section or move a step to another section.
- Clone an existing step to reuse its content.
- Create or update multiple steps in a single API call.

## Before you begin

It's important to note the following points before starting to code:

- Every step belongs to a section and a program. To create a step, specify a section ID. The parent program is derived automatically.
- `description.details` must be a JSON string of Ricos rich content (the format the Wix Business Manager's rich-text editor produces), not plain text. Passing plain text is accepted by this API, but the Business Manager currently fails to open a step whose `details` isn't valid Ricos JSON.
- To create simple Ricos content in JavaScript, install `@wix/ricos`, import `{ fromPlainText }` from `@wix/ricos`, and pass `JSON.stringify(fromPlainText("Your text"))` as `description.details`.
- You can also use the [Ricos Documents API](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/convert-to-ricos-document.md) to convert supported content formats to a Ricos document.
- To display an image or video with a step, add an `IMAGE` or `VIDEO` node to the Ricos content in `description.details`. Media set anywhere else on the step isn't displayed.
- A program can contain up to 2,000 steps. A site can contain up to 10,000 quiz steps.
- Quiz steps require a separately created quiz. Create or clone the quiz with the Quiz API first, then specify the returned quiz ID in `quizOptions.id`.
- For predictable response sizes, we recommend setting `paging.limit` up to 100.
- To retrieve steps in their section order, query by `sectionId` and sort by `ordering`.
- Use `MoveStep` to reorder steps or move them to another section. Use `UpdateStep` for content changes.
- Some returned description fields depend on the caller's permissions.
- Deleting a step can also delete the associated quiz if that step is the last step that references it. The public API doesn't provide a restore flow.

## Use cases

The Program Steps API supports these primary use cases:

- [Create an article step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/sample-flows.md)
- [Add an image to a step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/sample-flows.md)
- [Create a quiz step](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/sample-flows.md)
- [Reorder steps in a section](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/sample-flows.md)
- [Update multiple steps in one request](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/sample-flows.md)

## Terminology

- **Step:** A single content unit inside a section of an online program.
- **Section:** A container that groups steps within a program.
- **Program:** The top-level online learning experience that contains sections and steps.
- **Quiz step:** A step linked to a Quiz resource through `quizOptions.id`.
- **Ordering:** The step's position within a section.
- **Description field set:** The predefined set of description fields to return when retrieving or querying steps.

