> 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`). > - 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-solutions/cms/collection-management/data-collections/introduction.md ## Article Content: # About the Data Collections API > **Note for app developers:** Wix Data APIs require the site's [code editor](https://dev.wix.com/docs/develop-websites/articles/get-started/development-environments.md) to be enabled. If you are building a Wix app, add a [data collections extension](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/data-collections/about-data-collections-extensions.md) to automatically enable the code editor and create data collections when your app is installed on a site. The Data Collections API enables you to [create](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection.md), [delete](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection.md), and [modify](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection.md) the structure of data collections in a site. ## Use cases + [Set up a tutorials collection with references to collections for categories and authors.](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/sample-flows.md) + [Add draft/publish functionality to a collection.](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/sample-flows.md) ## Data collections and their structure Wix sites store data in collections. A collection determines the structure of the data to be stored, defining the fields each item contains, and the data type of each field. Wix users can [create and modify collections](https://support.wix.com/en/article/content-manager-creating-a-collection) for their site using the Content Management System (CMS). > **Note:** > In addition to user-created collections, some Wix business apps automatically create and manage CMS collections on the site. To learn about these, see [Wix App Collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction.md). With the Data Collections API, you can use code to create, modify, and delete collections in a Wix site. You can then store and retrieve data in these collections using the [Data Items API](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-items/introduction.md). > **Note:** > The structure you define for a data collection isn't enforced. This means that if you add or update an item containing a field or data type that doesn't match the collection's structure, your data is stored anyway. ## Permissions Access to a data collection is controlled by its permissions. These permissions are defined in the collection object and they specify which types of user can perform actions on the data contained in the collection. Wix Data recognizes 4 roles: - `ADMIN`: The site owner. - `SITE_MEMBER_AUTHOR`: A signed-in user who has added content to the collection. - `SITE_MEMBER`: Any signed-in user. - `ANYONE`: Any site visitor. For each of the 4 basic actions (inserting, updating, removing, and reading content) the minimal role required must be set. For example, if you want to allow only site members to view data, and only the site owner to insert, update, and remove data, declare your permissions as follows: - `insert`: `ADMIN` - `update`: `ADMIN` - `remove`: `ADMIN` - `read`: `SITE_MEMBER` @sdk_package_setup