> 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: About Data Collections Extensions

## Article: About Data Collections Extensions

## Article Link: https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/data-collections/about-data-collections-extensions.md

## Article Content:

# About Data Collections Extensions

The data collections extension lets your app automatically create CMS [data collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/introduction.md) when it's installed on a site. You configure the collection schemas and optional initial data in a JSON configuration file. When a Wix user installs your app, the collections are automatically created in the site's CMS with the schemas and data you specified.

For the complete JSON schema and field definitions, see the [data collections extension JSON reference](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections-extension/introduction.md).

## Before you begin

It's important to note the following before using the data collections extension:

- The site that installs your app must have the [CMS](https://support.wix.com/en/article/cms-formerly-content-manager-getting-started?tabs=Wix-Editor) added. Without it, collections added by the extension won't appear after installation. You can bundle the CMS with your app by [adding it as a dependency](https://dev.wix.com/docs/build-apps/launch-your-app/market-listing/add-app-dependencies.md).
- This extension automatically enables the site's [code editor](https://dev.wix.com/docs/develop-websites/articles/getting-started/development-environments.md#code-editor), which is required for the [Wix Data APIs](https://dev.wix.com/docs/api-reference/business-solutions/cms/introduction.md) to work. Without the extension, Wix users would need to manually enable the code editor on their site, which isn't guaranteed. With the extension, your app can reliably use Data APIs to read and write data in its collections.
- **Blocks apps don't need this extension.** If you're building a [Blocks app](https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-blocks/about-wix-blocks.md), you can add collections directly in the Blocks editor. Learn more about [CMS Collections in Blocks](https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-blocks/cms-collections-in-blocks/about-cms-collections-in-blocks.md).

## When to use the extension

Use the data collections extension when your app needs to store data on a site for any reason. This includes:

- **App-specific data storage**: Store member preferences, app settings, cached data, or any other data your app needs to persist on the site.
- **Content management**: Pre-populate collections with templates, sample content, or starter data that helps Wix users get started with your app.
- **Analytics and tracking**: Store analytics data, events, or visitor activity logs that your app collects and manages.
- **User-generated content**: Create collections for visitor submissions, reviews, or custom content that your app helps Wix users manage.

## Implementation options

You can add a data collections extension using:

- [Wix CLI](https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-the-cli/supported-extensions/backend/data-collections/add-a-data-collections-extension-with-the-wix-cli.md): Add and configure a data collections extension using the CLI.
- [App dashboard configuration](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/data-collections/add-a-data-collections-extension-in-the-app-dashboard.md): Configure collections using the JSON editor in the app dashboard.

## App version updates

Changes to your data collections extension require releasing a new major version of your app. When a user updates to the new major version, their collections are updated as follows:

- **Adding a new collection:** The new collection is created on the site.
- **Removing a collection:** If the old app version defined a collection and the new version doesn't, the collection is removed from the site.
- **Modifying a collection schema:** Field additions, removals, and type changes are applied to the collection. Existing data is preserved.

When updating a data collections extension, keep these points in mind:

- Collection changes only affect users who update to the new major version. Users who don't update retain their current collections.
- Collection changes take up to 5 minutes to propagate after an update.
- Initial data is only imported when a collection is created. If a collection already contains data, initial data is ignored during updates.

## See also

- [Add a Data Collections Extension with the CLI](https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-the-cli/supported-extensions/backend/data-collections/add-a-data-collections-extension-with-the-wix-cli.md)
- [Add a Data Collections Extension in the App Dashboard](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/data-collections/add-a-data-collections-extension-in-the-app-dashboard.md)
- [Data Collections Extension JSON Reference](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections-extension/introduction.md)
- [About the Wix Data APIs](https://dev.wix.com/docs/rest/business-solutions/cms/introduction.md)