> 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

# PatchDataCollection

# Package: collectionManagement

# Namespace: DataCollectionService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection.md

## Permission Scopes:
Manage Data Collections: SCOPE.DC-DATA.DATA-COLLECTIONS-MANAGE

## Introduction

Updates specified properties of a data collection.

Only updates the properties specified in the request, all other properties remain unchanged.
The following properties can be updated with this method: `displayName`, `displayField`, and `permissions`.
Attempting to update unsupported properties causes this operation to fail.

To update properties in a collection's `fields` array, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field.md).
To add or remove `plugins`, use [Add Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/add-data-collection-plugin.md) or [Delete Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-plugin.md).

---

## REST API

### Schema

```
 Method: patchDataCollection
 Description: Updates specified properties of a data collection.  Only updates the properties specified in the request, all other properties remain unchanged. The following properties can be updated with this method: `displayName`, `displayField`, and `permissions`. Attempting to update unsupported properties causes this operation to fail.  To update properties in a collection's `fields` array, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field.md). To add or remove `plugins`, use [Add Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/add-data-collection-plugin.md) or [Delete Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-plugin.md).
 URL: https://www.wixapis.com/data/v2/collections/{dataCollection.id}
 Method: PATCH
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  dataCollection, dataCollection.id
 Method parameters: 
   param name: dataCollection | type: DataCollection | description: A data collection defines the fields, data types, item permissions, and plugins for a set of data items. Use the Data Items API to store and retrieve the items themselves. | required: true 
        - name: id | type: string | description: [Collection GUID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections.md#collection-ids). For example, `my-first-collection`. For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction.md), use `AppName/CollectionName`. | required: true | validation: minLength 1, maxLength 256, immutable
        - name: displayName | type: string | description: Collection's display name as shown in the CMS. For example, `My First Collection`.  Default: The collection GUID.  | validation: maxLength 1000
        - name: displayField | type: string | description: Field whose value the CMS displays to represent the collection item when referenced in a different collection.  Default: The first field in the request, or `title` if no fields are specified.  | validation: maxLength 1000
        - name: fields | type: array<Field> | description: Collection's field structure.  | validation: maxItems 1000
           - ONE-OF: 
              - name: numberRange | type: NumberRange | description: Range of possible values for a numerical field.  
                 - name: min | type: number | description: Minimum permitted value for a numerical field.  Default: No validation  | validation: format double
                 - name: max | type: number | description: Maximum permitted value for a numerical field.  Default: No validation  | validation: format double
              - name: stringLengthRange | type: StringLengthRange | description: Length range permitted for a text field. Relevant for fields that hold strings, such as those of type `TEXT` or `RICH_TEXT`.  
                 - name: minLength | type: integer | description: Minimum permitted length for a text field.  Default: No validation  | validation: format int32
                 - name: maxLength | type: integer | description: Maximum permitted length for a text field.  Default: No validation  | validation: format int32
              - name: arraySizeRange | type: ArraySizeRange | description: Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  
                 - name: minSize | type: integer | description: Minimum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  Default: No validation  | validation: format int32
                 - name: maxSize | type: integer | description: Maximum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  Default: No validation  | validation: format int32
           - name: key | type: string | description: Unique identifier for the field. For example, `firstName`.  | validation: maxLength 1000
           - name: displayName | type: string | description: Field's display name when displayed in the CMS. For example, `First Name`.  | validation: maxLength 1000
           - name: type | type: Type | description: Field's data type.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
                 - enum:
                 -     TEXT: Plain-text string.
                 -     NUMBER: Number.
                 -     DATE: Date string in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
                 -     DATETIME: [JavaScript Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data.md)) or an object in the following format: `"someFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}` ([REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md)).
                 -     IMAGE: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
                 -     BOOLEAN: Boolean `true` or `false` value.
                 -     DOCUMENT: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
                 -     URL: URL in one of the following formats: `http://`, `https://`, `ftp://`, `mailto:`, `sms:`, `tel:`.
                 -     RICH_TEXT: [Rich-text](https://dev.wix.com/docs/rest/articles/getting-started/rich-text.md) string that may contain a subset of HTML tags.
                 -     VIDEO: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
                 -     ANY: Any field type.
                 -     ARRAY_STRING: Array of strings.
                 -     ARRAY_DOCUMENT: Array of documents: web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URLs.
                 -     AUDIO: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
                 -     TIME: Time string in `hh:mm:ss.SSS` format.
                 -     LANGUAGE: Language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. These may include country codes in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
                 -     RICH_CONTENT: [Rich content](https://dev.wix.com/docs/ricos/getting-started/introduction.md).
                 -     MEDIA_GALLERY: Array of web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URLs.
                 -     ADDRESS: Physical address object ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data.md#address-object) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md#address-object)).
                 -     PAGE_LINK: [Dynamic page link](https://support.wix.com/en/article/cms-linking-to-dynamic-pages).
                 -     REFERENCE: Reference to another item in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items.md)) to learn about item references.  If you select this type, then you must pass the `referencedCollectionId` field as well.
                 -     MULTI_REFERENCE: References to multiple items in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items.md)) to learn about item references.
                 -     OBJECT: JSON object.
                 -     ARRAY: Array.
                 -     LEGACY_TIME: Deprecated type that might appear in legacy collections.
                 -     LEGACY_BOOK: Deprecated type that might appear in legacy collections.
                 -     LEGACY_EXTERNAL_URL: Deprecated type that might appear in legacy collections.
                 -     LEGACY_BROKEN_REFERENCE: Deprecated type that might appear in legacy collections.
                 -     LEGACY_IMAGE: Deprecated type that might appear in legacy collections.
                 -     LEGACY_COLOR: Deprecated type that might appear in legacy collections.
                 -     LEGACY_EXTERNAL_VIDEO: Deprecated type that might appear in legacy collections.
                 -     SLUG: SLUG type used for dynamic page URLs.
                 -     EMAIL: Email.
                 -     SECURED_MEDIA: Secured media object with digital file metadata.
                 -     MEDIA_IMAGE: Media image object.
                 -     MEDIA_VECTOR_ART: Media vector art object.
           - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
              - ONE-OF: 
                 - name: reference | type: Reference | description: Metadata for a reference field.  
                    - name: referencedCollectionId | type: string | description: Referenced collection GUID.  | validation: minLength 1, maxLength 256
                 - name: multiReference | type: MultiReference | description: Metadata for a multi-reference field.  
                    - name: referencedCollectionId | type: string | description: Referenced collection GUID.  | validation: minLength 1, maxLength 256
                    - name: referencingFieldKey | type: string | description: Referencing field GUID.  | validation: maxLength 1000
                    - name: referencingDisplayName | type: string | description: Display name in the CMS for the referenced data.  | validation: maxLength 1000
                 - name: object | type: Object | description: Metadata for an object field.  
                    - name: fields | type: array<ObjectField> | description: Fields within the object.  | validation: maxItems 1000
                       - name: key | type: string | description: Field GUID.  | validation: maxLength 1000
                       - name: displayName | type: string | description: Display name for the field.  | validation: maxLength 1000
                       - name: type | type: Type | description: Field type.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
                       - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
                    - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
                 - name: array | type: Array | description: Metadata for an array field.  
                    - name: elementType | type: Type | description: Element's data type.  
                    - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
                    - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                    - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                    - name: defaultValue | type: array<Value> | description:   
                       - ONE-OF: 
                          - name: nullValue | type:  | description:   
                          - name: numberValue | type: number | description:   
                          - name: stringValue | type: string | description:   
                          - name: boolValue | type: boolean | description:   
                          - name: structValue | type: object | description:   
                          - name: listValue | type: ListValue | description:   
                             - name: values | type: array<Value> | description:   
                 - name: pageLink | type: PageLink | description: Metadata for a page link field.  
                    - name: calculator | type: Calculator | description: Calculation pattern used to generate the page link. Required for page link fields.  
                       - ONE-OF: 
                          - name: fieldsPattern | type: FieldsPattern | description: Value is calculated according to pattern, whitespaces are replaced with dash [-].  
                             - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: maxLength 1000
                             - name: lowercase | type: boolean | description: Whether to convert the generated value to lowercase. Default: `false`.  
                          - name: urlizedOnlyPattern | type: UrlizedOnlyPattern | description: Value is only URL encoded.  
                             - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: maxLength 1000
                    - name: linkedRouterPage | type: string | description: Defines reference to router pattern in the site document.  | validation: maxLength 1000
                    - name: pageLinkType | type: PageLinkType | description: Defines the type of the page link.  
                             - enum:
                             -     COLLECTION_DEFINED: Page link with field substitution patterns stored in the data collection. Example: "path/{plainField}" where plainField can be any supported type. Can be persistent (stored in database) or overlay (calculated on-the-fly).
                             -     ROUTER_DEFINED: Page link with field substitution patterns provided by Routers Config. Only supports SLUG type fields in the template (e.g., "products/{slug}"). Always read-only overlay fields (never persisted in database). Page link definitions are NOT stored in the data collection.
                 - name: slug | type: Slug | description: Metadata for a slug field.  
                    - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: minLength 1, maxLength 1000
                    - name: minLength | type: integer | description: Minimum permitted length for a string field.  | validation: format int32
                    - name: maxLength | type: integer | description: Maximum permitted length for a string field.  | validation: format int32
                    - name: defaultValue | type: string | description:   
                 - name: text | type: Text | description: Metadata for TEXT.  
                    - ONE-OF: 
                       - name: textValidation | type: TextValidation | description: Length and pattern constraints for the text value.  
                          - name: minLength | type: integer | description: Minimum permitted length for a text field.  | validation: format int32
                          - name: maxLength | type: integer | description: Maximum permitted length for a text field.  | validation: format int32
                          - name: pattern | type: string | description: Custom regex pattern for string validation.  
                       - name: enumValues | type: EnumValues | description: Allowed text values.  
                          - name: values | type: array<string> | description: Allowed enum values for string fields.  | validation: minItems 1, maxItems 512, maxLength 1000
                    - name: defaultValue | type: string | description:   
                 - name: number | type: Number | description: Metadata for NUMBER.  
                    - name: defaultValue | type: number | description: Value assigned when a data item omits this field.  | validation: format double
                    - name: min | type: number | description: Minimum permitted value for a numerical field.  | validation: format double
                    - name: max | type: number | description: Maximum permitted value for a numerical field.  | validation: format double
                 - name: date | type: Date | description: Metadata for DATE.  
                    - ONE-OF: 
                       - name: defaultValueFixed | type: string | description: Fixed date and time used as the default value.  | validation: format date-time
                       - name: defaultValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the default value.  | validation: format int32
                    - ONE-OF: 
                       - name: minDateFixed | type: string | description: Earliest permitted date and time.  | validation: format date-time
                       - name: minValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the earliest permitted date.  | validation: format int32
                    - ONE-OF: 
                       - name: maxDateFixed | type: string | description: Latest permitted date and time.  | validation: format date-time
                       - name: maxValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the latest permitted date.  | validation: format int32
                 - name: datetime | type: Datetime | description: Metadata for DATETIME.  
                    - ONE-OF: 
                       - name: defaultValueFixed | type: string | description: Fixed date and time used as the default value.  | validation: format date-time
                       - name: defaultValueOffsetFromNowInSeconds | type: integer | description: Offset from the current time, in seconds, used as the default value.  | validation: format int32
                    - ONE-OF: 
                       - name: minDateFixed | type: string | description: Earliest permitted date and time.  | validation: format date-time
                       - name: minDateOffsetFromNowInSeconds | type: integer | description:   | validation: format int32
                    - ONE-OF: 
                       - name: maxDateFixed | type: string | description: Latest permitted date and time.  | validation: format date-time
                       - name: maxDateOffsetFromNowInSeconds | type: integer | description:   | validation: format int32
                 - name: image | type: Image | description: Metadata for IMAGE.  
                    - name: defaultValue | type: string | description:   
                 - name: boolean | type: Boolean | description: Metadata for BOOLEAN.  
                    - name: defaultValue | type: boolean | description: Value assigned when a data item omits this field.  
                 - name: document | type: Document | description: Metadata for DOCUMENT.  
                    - name: defaultValue | type: string | description:   
                 - name: url | type: Url | description: Metadata for URL.  
                    - name: defaultValue | type: string | description: Value assigned when a data item omits this field.  | validation: minLength 1, maxLength 2048
                    - name: textValidation | type: TextValidation | description: Length and pattern constraints for the text value.  
                 - name: richText | type: RichText | description: Metadata for RICH_TEXT.  
                    - name: defaultValue | type: string | description:   
                    - name: minLength | type: integer | description: Minimum permitted length for a string field.  | validation: format int32
                    - name: maxLength | type: integer | description: Maximum permitted length for a string field.  | validation: format int32
                 - name: video | type: Video | description: Metadata for VIDEO.  
                    - name: defaultValue | type: string | description:   
                 - name: arrayString | type: ArrayString | description: Metadata for ARRAY_STRING.  
                    - name: defaultValue | type: array<string> | description:   
                    - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                    - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                    - name: minLengthForItem | type: integer | description: Minimum permitted length for a each item.  | validation: format int32
                    - name: maxLengthForItem | type: integer | description: Maximum permitted length for a each item.  | validation: format int32
                 - name: arrayDocument | type: ArrayDocument | description: Metadata for ARRAY_DOCUMENT.  
                    - name: defaultValue | type: array<string> | description:   
                    - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                    - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                 - name: audio | type: Audio | description: Metadata for AUDIO.  
                    - name: defaultValue | type: string | description:   
                 - name: time | type: Time | description: Metadata for TIME.  
                    - name: defaultValue | type: string | description: Time value in format: hh:mm (e.g., "00:00", "09:30").  | validation: minLength 5, maxLength 5
                    - name: minTime | type: string | description: Minimum permitted time-of-day (inclusive). Time value in format: hh:mm (e.g., "00:00", "09:30").  | validation: minLength 5, maxLength 5
                    - name: maxTime | type: string | description: Maximum permitted time-of-day (inclusive). Time value in format: hh:mm (e.g., "23:59", "17:00").  | validation: minLength 5, maxLength 5
                 - name: richContent | type: RichContent | description: Metadata for RICH_CONTENT.  
                    - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
                 - name: mediaGallery | type: MediaGallery | description: Metadata for MEDIA_GALLERY.  
                    - name: defaultValue | type: array | description:   
                 - name: address | type: Address | description: Metadata for ADDRESS.  
                    - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
                 - name: email | type: Email | description: Metadata for EMAIL.  
                    - name: defaultValue | type: string | description: Value assigned when a data item omits this field.  | validation: format EMAIL
                 - name: legacyColor | type: LegacyColor | description: Metadata for LEGACY_COLOR.  
                    - name: defaultValue | type: string | description:   
                 - name: mediaImage | type: MediaImage | description: Metadata for MEDIA_IMAGE.  
                    - name: defaultValue | type: object | description: Image object used when the field is omitted from a new item.  
           - name: encrypted | type: boolean | description: Whether the field is encrypted.  
           - name: description | type: string | description: Field description.  | validation: maxLength 16000
           - name: readOnly | type: boolean | description: Whether the field is read-only. A read-only field can't be changed.  Default: `false`  
           - name: immutable | type: boolean | description: Whether the field is immutable. An immutable field can be set once, but then can't be updated.  Default: `false`  
           - name: required | type: boolean | description: Whether the field is required.  Default: `false`  
           - name: plugins | type: array<FieldPlugin> | description: Additional optional plugins for the field.  | validation: maxItems 100
              - ONE-OF: 
                 - name: cmsOptions | type: CmsOptions | description: Options for the CMS plugin.  
                    - name: internal | type: boolean | description: Indicates an internal CMS field. The CMS does not display internal fields.  Default: `false`  
                 - name: categoryFieldOptions | type: CategoryFieldOptions | description: Options for the CATEGORY_FIELD plugin.  
                    - name: isPrimary | type: boolean | description: Transient input-only flag. When set to `true` during create/update, designates this category field's group as the target for `_primaryCategory`. The flag is not persisted; `_primaryCategory` remains the source of truth.  Default: `false`  
              - name: type | type: Type | description: Field plugin type.  
                     - enum:
                     -     UNKNOWN: Unknown plugin type.
                     -     CMS: CMS-related field attributes.
                     -     CATEGORY_FIELD: Marks a multi-reference field as a category field linking to a Category Group.
                     -     CATEGORY_CONSUMER: Marks a back-reference field on Category Groups indicating a consumer relationship.
                     -     PRIMARY_CATEGORY_FIELD: Marks the auto-managed primary category single-reference field on a consumer collection.
        - name: permissions | type: Permissions | description: [Permissions](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/introduction.md#permissions) required to access and modify collection items, defined by the lowest role needed to perform each action.  
           - name: insert | type: Role | description: Role required to insert items into the collection.  Default: `CMS_EDITOR`  
                 - enum:
                 -     ADMIN: Site administrator.
                 -     SITE_MEMBER_AUTHOR: Signed-in user who added content to this collection.
                 -     SITE_MEMBER: Any signed-in user.
                 -     ANYONE: Any site visitor.
           - name: update | type: Role | description: Role required to update collection items.  Default: `CMS_EDITOR`  
           - name: remove | type: Role | description: Role required to remove items from the collection.  Default: `CMS_EDITOR`  
           - name: read | type: Role | description: Role required to read collection items.  Default: `SITE_MEMBER_AUTHOR`  
        - name: plugins | type: array<Plugin> | description: Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality.  | validation: maxItems 100
           - ONE-OF: 
              - name: publishOptions | type: PublishPluginOptions | description: Options for the Publish plugin. This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object.md) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.  
                 - name: defaultStatus | type: Status | description: Publication status assigned to items that don't specify one.  Default: `PUBLISHED`.  
                         - enum:
                         -     PUBLISHED: Items are published by default.
                         -     DRAFT: Items are drafts by default.
              - name: singleItemOptions | type: SingleItemPluginOptions | description: Options for the Single Item plugin.  
                 - name: singleItemId | type: string | description: GUID of the single item in this collection. If you insert or update an item, its GUID value is always changed to this.  | validation: maxLength 16000
              - name: urlizedOptions | type: UrlizedPluginOptions | description: Options for the Urlized plugin.  
                 - name: format | type: Format | description: Encoding method for generating a URL in ASCII characters.  Default: `ORIGINAL`.  
                         - enum:
                         -     ORIGINAL: Letters are converted to lower case and spaces are replaced with dashes before generating the encoded URL.
                         -     PLAIN: No changes are made before generating the encoded URL.
              - name: multilingualOptions | type: MultilingualOptions | description: Options for the Multilingual plugin.  
                 - name: translatableFieldKeys | type: array<string> | description: IDs of fields to allow translation.  | validation: maxItems 1000, maxLength 1000
              - name: editablePageLinkOptions | type: PageLinkPluginOptions | description: Options for the PageLink plugin.  
                 - name: isPersisted | type: boolean | description: Whether page link values are stored with the items.  Default: `false`.  
                 - name: isMutable | type: boolean | description: Whether page link values can be updated.  Default: `false`.  
              - name: cmsOptions | type: CmsOptions | description: Options for the CMS plugin.  
                 - name: siteSort | type: SiteSort | description: CMS sort, applied when a collection is displayed on a site.  
                    - name: sort | type: array<Sort> | description: Field and order for the site sort.  | validation: maxItems 100
                       - name: fieldKey | type: string | description: Field to sort by.  | validation: maxLength 1000
                       - name: direction | type: Direction | description: Sort order. Use `ASC` for ascending order or `DESC` for descending order.  Default: `ASC`  
                                 - enum: ASC, DESC
              - name: catalogOptions | type: CatalogOptions | description: Options for the Catalog plugin.  
                 - name: nameFieldKey | type: string | description: Key of the collection field that contains the catalog item's name. The referenced field must have type `TEXT`.  Required when configuring the Catalog plugin.  | validation: maxLength 1000
                 - name: priceFieldKey | type: string | description: Key of the collection field that contains the catalog item's price. The referenced field must have type `NUMBER`.  Required when configuring the Catalog plugin.  | validation: maxLength 1000
                 - name: urlFieldKey | type: string | description: Key of the collection field that contains the catalog item's URL. The referenced field must have type `URL`.  | validation: maxLength 1000
                 - name: descriptionFieldKey | type: string | description: Key of the collection field that contains the catalog item's description. The referenced field must have type `TEXT`.  | validation: maxLength 1000
                 - name: imageFieldKey | type: string | description: Key of the collection field that contains the catalog item's image. The referenced field must have type `IMAGE` or `MEDIA_IMAGE`.  | validation: maxLength 1000
                 - name: quantityFieldKey | type: string | description: Key of the collection field that contains the catalog item's quantity. The referenced field must have type `NUMBER`.  | validation: maxLength 1000
                 - name: digitalFileFieldKey | type: string | description: Key of the collection field that contains the catalog item's digital file. The referenced field must have type `SECURED_MEDIA`.  | validation: maxLength 1000
                 - name: weightFieldKey | type: string | description: Key of the collection field that contains the catalog item's weight. The referenced field must have type `NUMBER`.  | validation: maxLength 1000
                 - name: skuFieldKey | type: string | description: Key of the collection field that contains the catalog item's stock keeping unit (SKU). The referenced field must have type `TEXT`.  | validation: maxLength 1000
                 - name: shippableFieldKey | type: string | description: Key of the collection field that indicates whether the catalog item requires shipping. The referenced field must have type `BOOLEAN`.  | validation: maxLength 1000
              - name: draftItemsOptions | type: DraftItemsPluginOptions | description: Options for the Draft Items plugin.  
                 - name: draftPermissions | type: DraftPermissions | description: Access levels required to view and manage drafts and change publication status.  
                    - name: manageDrafts | type: AccessLevel | description: Access level required to view/edit/remove items from the drafts collection. Can be set to one of CMS_EDITOR, PRIVILEGED Default: `CMS_EDITOR`  
                             - enum:
                             -     ANYONE: Any subject, including visitors.
                             -     SITE_MEMBER: Any signed-in user (both site members and collaborators).
                             -     SITE_MEMBER_AUTHOR: Any signed-in user, but site members only have access to own items.
                             -     CMS_EDITOR: Site collaborator that has a role with CMS Access permission.
                             -     PRIVILEGED: CMS administrators and users or roles granted with special access.
                    - name: managePublishStatus | type: AccessLevel | description: Access level required to publish draft items and unpublish published items. Can be set to one of CMS_EDITOR, PRIVILEGED Default: `CMS_EDITOR`  
                    - name: viewDrafts | type: AccessLevel | description: Access level required to view draft items. Managing drafts also grants viewing. If omitted, inherits manage_drafts for compatibility.  
                 - name: allowWritesToPublishedCollection | type: boolean | description: Whether writes to the published collection are allowed while the Draft Items plugin is enabled. Defaults to `false` for newly created collections and newly added plugins. Existing schemas that predate this field return `true` for backwards compatibility.  
           - name: type | type: Type | description: Plugin type.  
                 - enum:
                 -     PUBLISH: Allows items to be marked as either draft or published. For each item you can set a publishing time when the item will become visible to site visitors.
                 -     SINGLE_ITEM: Ensures the collection can have one item at most. Can only be applied to a new collection.
                 -     URLIZED: Generates item URLs for collections used by dynamic pages.
                 -     GRIDAPPLESS: Deprecated. Will be removed in the future.
                 -     MULTILINGUAL: Indicates that the collection is translatable. This allows you to manage translation for selected fields using [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
                 -     SHARED: Indicates that collection is shared with current site.
                 -     EDITABLE_PAGE_LINK: Indicates that page link fields are persisted and can be updated.
                 -     CMS: CMS-specific collection properties.
                 -     CATALOG: Indicates that the collection is used as a [Wix Catalog](https://dev.wix.com/docs/rest/business-solutions/e-commerce/catalogs/catalog-service-plugin/introduction.md) app. This plugin is used to manage product data and is required for collections that are part of a catalog.
                 -     CATEGORIES: Marks the collection as a Category Group for categorization features.
                 -     DRAFT_ITEMS: Enables the draft items collection: safe draft editing with explicit publish step.
 Return type: PatchDataCollectionResponse
  - name: dataCollection | type: DataCollection | description: Updated data collection.  
     - name: id | type: string | description: [Collection GUID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections.md#collection-ids). For example, `my-first-collection`. For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction.md), use `AppName/CollectionName`.  | validation: minLength 1, maxLength 256, immutable
     - name: collectionType | type: CollectionType | description: Collection type. Indicates how the collection was created and how it is stored.  | read-only: true 
         - enum:
         -     NATIVE: User-created collection.
         -     WIX_APP: [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app when it is installed. This type of collection can be modified dynamically by that app (for example, Wix Forms).
         -     BLOCKS_APP: Collection created by a Wix Blocks app.
         -     EXTERNAL: Collection located in externally connected storage.
     - name: ownerAppId | type: string | description: GUID of the app that defined this collection. For collections defined by Wix users, this value is null.  | read-only: true | validation: format GUID
     - name: maxPageSize | type: integer | description: Maximum number of items returned in a single query, based on the underlying storage. Native collections have a maximum page size of 1000 for offset-based queries or 100 for cursor-based queries. External collections' maximum page size defaults to 50, but an external provider can set any maximum value up to 1000.  | read-only: true | validation: format int32
     - name: displayName | type: string | description: Collection's display name as shown in the CMS. For example, `My First Collection`.  Default: The collection GUID.  | validation: maxLength 1000
     - name: defaultDisplayOrder | type: Sort | description: Default item sorting order when a query doesn't specify one.  | read-only: true 
        - name: fieldKey | type: string | description: Field to sort by.  | validation: maxLength 1000
        - name: direction | type: Direction | description: Sort order. Use `ASC` for ascending order or `DESC` for descending order.  Default: `ASC`  
             - enum: ASC, DESC
     - name: displayNamespace | type: string | description: UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings. Empty for all data collections not owned by Wix apps.  | read-only: true | validation: maxLength 1000
     - name: displayField | type: string | description: Field whose value the CMS displays to represent the collection item when referenced in a different collection.  Default: The first field in the request, or `title` if no fields are specified.  | validation: maxLength 1000
     - name: capabilities | type: CollectionCapabilities | description: Capabilities the collection supports. Capabilities are set by default. Values depend on the collection type.  | read-only: true 
        - name: dataOperations | type: array<DataOperation> | description: Data operations the collection supports. The listed operations can be performed on data the collection contains.  > **Note**: The `PATCH` and `BULK_PATCH` operations aren't currently supported.  | validation: maxItems 100
             - enum: AGGREGATE, BULK_INSERT, BULK_REMOVE, BULK_SAVE, BULK_UPDATE, COUNT, DISTINCT, FIND, GET, INSERT, INSERT_REFERENCE, IS_REFERENCED, QUERY_REFERENCED, REMOVE, REMOVE_REFERENCE, REPLACE_REFERENCES, SAVE, TRUNCATE, UPDATE, PATCH, BULK_PATCH
        - name: collectionOperations | type: array<CollectionOperation> | description: Collection operations supported. The listed operations can be performed on the collection itself.  | validation: maxItems 100
             - enum:
             -     UPDATE: Allows updating the collection's structure, for example adding, updating, or deleting fields. If not included, the collection's structure can't be changed.
             -     REMOVE: Allows deleting the entire collection. If not included, the collection can't be deleted.
        - name: indexLimits | type: IndexLimits | description: Maximum number of indexes for the collection.  
           - name: regular | type: integer | description: Maximum number of regular (non-unique) indexes allowed for this collection.  
           - name: unique | type: integer | description: Maximum number of unique indexes allowed for this collection.  
           - name: total | type: integer | description: Maximum number of regular and unique indexes allowed for this collection.  
     - name: fields | type: array<Field> | description: Collection's field structure.  | validation: maxItems 1000
        - ONE-OF: 
           - name: numberRange | type: NumberRange | description: Range of possible values for a numerical field.  
              - name: min | type: number | description: Minimum permitted value for a numerical field.  Default: No validation  | validation: format double
              - name: max | type: number | description: Maximum permitted value for a numerical field.  Default: No validation  | validation: format double
           - name: stringLengthRange | type: StringLengthRange | description: Length range permitted for a text field. Relevant for fields that hold strings, such as those of type `TEXT` or `RICH_TEXT`.  
              - name: minLength | type: integer | description: Minimum permitted length for a text field.  Default: No validation  | validation: format int32
              - name: maxLength | type: integer | description: Maximum permitted length for a text field.  Default: No validation  | validation: format int32
           - name: arraySizeRange | type: ArraySizeRange | description: Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  
              - name: minSize | type: integer | description: Minimum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  Default: No validation  | validation: format int32
              - name: maxSize | type: integer | description: Maximum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  Default: No validation  | validation: format int32
        - name: key | type: string | description: Unique identifier for the field. For example, `firstName`.  | validation: maxLength 1000
        - name: displayName | type: string | description: Field's display name when displayed in the CMS. For example, `First Name`.  | validation: maxLength 1000
        - name: type | type: Type | description: Field's data type.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
             - enum:
             -     TEXT: Plain-text string.
             -     NUMBER: Number.
             -     DATE: Date string in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
             -     DATETIME: [JavaScript Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data.md)) or an object in the following format: `"someFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}` ([REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md)).
             -     IMAGE: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
             -     BOOLEAN: Boolean `true` or `false` value.
             -     DOCUMENT: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
             -     URL: URL in one of the following formats: `http://`, `https://`, `ftp://`, `mailto:`, `sms:`, `tel:`.
             -     RICH_TEXT: [Rich-text](https://dev.wix.com/docs/rest/articles/getting-started/rich-text.md) string that may contain a subset of HTML tags.
             -     VIDEO: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
             -     ANY: Any field type.
             -     ARRAY_STRING: Array of strings.
             -     ARRAY_DOCUMENT: Array of documents: web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URLs.
             -     AUDIO: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
             -     TIME: Time string in `hh:mm:ss.SSS` format.
             -     LANGUAGE: Language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. These may include country codes in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
             -     RICH_CONTENT: [Rich content](https://dev.wix.com/docs/ricos/getting-started/introduction.md).
             -     MEDIA_GALLERY: Array of web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URLs.
             -     ADDRESS: Physical address object ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data.md#address-object) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md#address-object)).
             -     PAGE_LINK: [Dynamic page link](https://support.wix.com/en/article/cms-linking-to-dynamic-pages).
             -     REFERENCE: Reference to another item in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items.md)) to learn about item references.  If you select this type, then you must pass the `referencedCollectionId` field as well.
             -     MULTI_REFERENCE: References to multiple items in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items.md)) to learn about item references.
             -     OBJECT: JSON object.
             -     ARRAY: Array.
             -     LEGACY_TIME: Deprecated type that might appear in legacy collections.
             -     LEGACY_BOOK: Deprecated type that might appear in legacy collections.
             -     LEGACY_EXTERNAL_URL: Deprecated type that might appear in legacy collections.
             -     LEGACY_BROKEN_REFERENCE: Deprecated type that might appear in legacy collections.
             -     LEGACY_IMAGE: Deprecated type that might appear in legacy collections.
             -     LEGACY_COLOR: Deprecated type that might appear in legacy collections.
             -     LEGACY_EXTERNAL_VIDEO: Deprecated type that might appear in legacy collections.
             -     SLUG: SLUG type used for dynamic page URLs.
             -     EMAIL: Email.
             -     SECURED_MEDIA: Secured media object with digital file metadata.
             -     MEDIA_IMAGE: Media image object.
             -     MEDIA_VECTOR_ART: Media vector art object.
        - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
           - ONE-OF: 
              - name: reference | type: Reference | description: Metadata for a reference field.  
                 - name: referencedCollectionId | type: string | description: Referenced collection GUID.  | validation: minLength 1, maxLength 256
              - name: multiReference | type: MultiReference | description: Metadata for a multi-reference field.  
                 - name: referencedCollectionId | type: string | description: Referenced collection GUID.  | validation: minLength 1, maxLength 256
                 - name: referencingFieldKey | type: string | description: Referencing field GUID.  | validation: maxLength 1000
                 - name: referencingDisplayName | type: string | description: Display name in the CMS for the referenced data.  | validation: maxLength 1000
              - name: object | type: Object | description: Metadata for an object field.  
                 - name: fields | type: array<ObjectField> | description: Fields within the object.  | validation: maxItems 1000
                    - name: key | type: string | description: Field GUID.  | validation: maxLength 1000
                    - name: displayName | type: string | description: Display name for the field.  | validation: maxLength 1000
                    - name: type | type: Type | description: Field type.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
                    - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
                    - name: capabilities | type: FieldCapabilities | description: Capabilities the object field supports.  | read-only: true 
                       - name: sortable | type: boolean | description: Whether the collection can be sorted by this field.  Default: `false`  
                       - name: queryOperators | type: array<QueryOperator> | description: Query operators that can be used for this field.  | validation: maxItems 100
                                 - enum: EQ, LT, GT, NE, LTE, GTE, STARTS_WITH, ENDS_WITH, CONTAINS, HAS_SOME, HAS_ALL, EXISTS, URLIZED
                 - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
              - name: array | type: Array | description: Metadata for an array field.  
                 - name: elementType | type: Type | description: Element's data type.  
                 - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
                 - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                 - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                 - name: defaultValue | type: array<Value> | description:   
                    - ONE-OF: 
                       - name: nullValue | type:  | description:   
                       - name: numberValue | type: number | description:   
                       - name: stringValue | type: string | description:   
                       - name: boolValue | type: boolean | description:   
                       - name: structValue | type: object | description:   
                       - name: listValue | type: ListValue | description:   
                          - name: values | type: array<Value> | description:   
              - name: pageLink | type: PageLink | description: Metadata for a page link field.  
                 - name: calculator | type: Calculator | description: Calculation pattern used to generate the page link. Required for page link fields.  
                    - ONE-OF: 
                       - name: fieldsPattern | type: FieldsPattern | description: Value is calculated according to pattern, whitespaces are replaced with dash [-].  
                          - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: maxLength 1000
                          - name: lowercase | type: boolean | description: Whether to convert the generated value to lowercase. Default: `false`.  
                       - name: urlizedOnlyPattern | type: UrlizedOnlyPattern | description: Value is only URL encoded.  
                          - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: maxLength 1000
                 - name: linkedRouterPage | type: string | description: Defines reference to router pattern in the site document.  | validation: maxLength 1000
                 - name: pageLinkType | type: PageLinkType | description: Defines the type of the page link.  
                         - enum:
                         -     COLLECTION_DEFINED: Page link with field substitution patterns stored in the data collection. Example: "path/{plainField}" where plainField can be any supported type. Can be persistent (stored in database) or overlay (calculated on-the-fly).
                         -     ROUTER_DEFINED: Page link with field substitution patterns provided by Routers Config. Only supports SLUG type fields in the template (e.g., "products/{slug}"). Always read-only overlay fields (never persisted in database). Page link definitions are NOT stored in the data collection.
              - name: slug | type: Slug | description: Metadata for a slug field.  
                 - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: minLength 1, maxLength 1000
                 - name: minLength | type: integer | description: Minimum permitted length for a string field.  | validation: format int32
                 - name: maxLength | type: integer | description: Maximum permitted length for a string field.  | validation: format int32
                 - name: defaultValue | type: string | description:   
              - name: text | type: Text | description: Metadata for TEXT.  
                 - ONE-OF: 
                    - name: textValidation | type: TextValidation | description: Length and pattern constraints for the text value.  
                       - name: minLength | type: integer | description: Minimum permitted length for a text field.  | validation: format int32
                       - name: maxLength | type: integer | description: Maximum permitted length for a text field.  | validation: format int32
                       - name: pattern | type: string | description: Custom regex pattern for string validation.  
                    - name: enumValues | type: EnumValues | description: Allowed text values.  
                       - name: values | type: array<string> | description: Allowed enum values for string fields.  | validation: minItems 1, maxItems 512, maxLength 1000
                 - name: defaultValue | type: string | description:   
              - name: number | type: Number | description: Metadata for NUMBER.  
                 - name: defaultValue | type: number | description: Value assigned when a data item omits this field.  | validation: format double
                 - name: min | type: number | description: Minimum permitted value for a numerical field.  | validation: format double
                 - name: max | type: number | description: Maximum permitted value for a numerical field.  | validation: format double
              - name: date | type: Date | description: Metadata for DATE.  
                 - ONE-OF: 
                    - name: defaultValueFixed | type: string | description: Fixed date and time used as the default value.  | validation: format date-time
                    - name: defaultValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the default value.  | validation: format int32
                 - ONE-OF: 
                    - name: minDateFixed | type: string | description: Earliest permitted date and time.  | validation: format date-time
                    - name: minValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the earliest permitted date.  | validation: format int32
                 - ONE-OF: 
                    - name: maxDateFixed | type: string | description: Latest permitted date and time.  | validation: format date-time
                    - name: maxValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the latest permitted date.  | validation: format int32
              - name: datetime | type: Datetime | description: Metadata for DATETIME.  
                 - ONE-OF: 
                    - name: defaultValueFixed | type: string | description: Fixed date and time used as the default value.  | validation: format date-time
                    - name: defaultValueOffsetFromNowInSeconds | type: integer | description: Offset from the current time, in seconds, used as the default value.  | validation: format int32
                 - ONE-OF: 
                    - name: minDateFixed | type: string | description: Earliest permitted date and time.  | validation: format date-time
                    - name: minDateOffsetFromNowInSeconds | type: integer | description:   | validation: format int32
                 - ONE-OF: 
                    - name: maxDateFixed | type: string | description: Latest permitted date and time.  | validation: format date-time
                    - name: maxDateOffsetFromNowInSeconds | type: integer | description:   | validation: format int32
              - name: image | type: Image | description: Metadata for IMAGE.  
                 - name: defaultValue | type: string | description:   
              - name: boolean | type: Boolean | description: Metadata for BOOLEAN.  
                 - name: defaultValue | type: boolean | description: Value assigned when a data item omits this field.  
              - name: document | type: Document | description: Metadata for DOCUMENT.  
                 - name: defaultValue | type: string | description:   
              - name: url | type: Url | description: Metadata for URL.  
                 - name: defaultValue | type: string | description: Value assigned when a data item omits this field.  | validation: minLength 1, maxLength 2048
                 - name: textValidation | type: TextValidation | description: Length and pattern constraints for the text value.  
              - name: richText | type: RichText | description: Metadata for RICH_TEXT.  
                 - name: defaultValue | type: string | description:   
                 - name: minLength | type: integer | description: Minimum permitted length for a string field.  | validation: format int32
                 - name: maxLength | type: integer | description: Maximum permitted length for a string field.  | validation: format int32
              - name: video | type: Video | description: Metadata for VIDEO.  
                 - name: defaultValue | type: string | description:   
              - name: arrayString | type: ArrayString | description: Metadata for ARRAY_STRING.  
                 - name: defaultValue | type: array<string> | description:   
                 - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                 - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                 - name: minLengthForItem | type: integer | description: Minimum permitted length for a each item.  | validation: format int32
                 - name: maxLengthForItem | type: integer | description: Maximum permitted length for a each item.  | validation: format int32
              - name: arrayDocument | type: ArrayDocument | description: Metadata for ARRAY_DOCUMENT.  
                 - name: defaultValue | type: array<string> | description:   
                 - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                 - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
              - name: audio | type: Audio | description: Metadata for AUDIO.  
                 - name: defaultValue | type: string | description:   
              - name: time | type: Time | description: Metadata for TIME.  
                 - name: defaultValue | type: string | description: Time value in format: hh:mm (e.g., "00:00", "09:30").  | validation: minLength 5, maxLength 5
                 - name: minTime | type: string | description: Minimum permitted time-of-day (inclusive). Time value in format: hh:mm (e.g., "00:00", "09:30").  | validation: minLength 5, maxLength 5
                 - name: maxTime | type: string | description: Maximum permitted time-of-day (inclusive). Time value in format: hh:mm (e.g., "23:59", "17:00").  | validation: minLength 5, maxLength 5
              - name: richContent | type: RichContent | description: Metadata for RICH_CONTENT.  
                 - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
              - name: mediaGallery | type: MediaGallery | description: Metadata for MEDIA_GALLERY.  
                 - name: defaultValue | type: array | description:   
              - name: address | type: Address | description: Metadata for ADDRESS.  
                 - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
              - name: email | type: Email | description: Metadata for EMAIL.  
                 - name: defaultValue | type: string | description: Value assigned when a data item omits this field.  | validation: format EMAIL
              - name: legacyColor | type: LegacyColor | description: Metadata for LEGACY_COLOR.  
                 - name: defaultValue | type: string | description:   
              - name: mediaImage | type: MediaImage | description: Metadata for MEDIA_IMAGE.  
                 - name: defaultValue | type: object | description: Image object used when the field is omitted from a new item.  
        - name: systemField | type: boolean | description: Whether the field is a system field.  | read-only: true 
        - name: capabilities | type: FieldCapabilities | description: Capabilities the field supports.  | read-only: true 
        - name: encrypted | type: boolean | description: Whether the field is encrypted.  
        - name: description | type: string | description: Field description.  | validation: maxLength 16000
        - name: readOnly | type: boolean | description: Whether the field is read-only. A read-only field can't be changed.  Default: `false`  
        - name: immutable | type: boolean | description: Whether the field is immutable. An immutable field can be set once, but then can't be updated.  Default: `false`  
        - name: required | type: boolean | description: Whether the field is required.  Default: `false`  
        - name: plugins | type: array<FieldPlugin> | description: Additional optional plugins for the field.  | validation: maxItems 100
           - ONE-OF: 
              - name: cmsOptions | type: CmsOptions | description: Options for the CMS plugin.  
                 - name: internal | type: boolean | description: Indicates an internal CMS field. The CMS does not display internal fields.  Default: `false`  
              - name: categoryFieldOptions | type: CategoryFieldOptions | description: Options for the CATEGORY_FIELD plugin.  
                 - name: isPrimary | type: boolean | description: Transient input-only flag. When set to `true` during create/update, designates this category field's group as the target for `_primaryCategory`. The flag is not persisted; `_primaryCategory` remains the source of truth.  Default: `false`  
           - name: type | type: Type | description: Field plugin type.  
                 - enum:
                 -     UNKNOWN: Unknown plugin type.
                 -     CMS: CMS-related field attributes.
                 -     CATEGORY_FIELD: Marks a multi-reference field as a category field linking to a Category Group.
                 -     CATEGORY_CONSUMER: Marks a back-reference field on Category Groups indicating a consumer relationship.
                 -     PRIMARY_CATEGORY_FIELD: Marks the auto-managed primary category single-reference field on a consumer collection.
        - name: condition | type: FieldCondition | description: Conditions that control whether this field is included when retrieving data items.  | read-only: true 
           - name: groupName | type: string | description: If `groupName` is set, this field will not be present in query results. To retrieve this field, pass `groupName` value to `includeFieldGroups` parameter in query operations.  | validation: maxLength 100
           - name: permission | type: Permission | description: If present, the field may be omitted from the results, if the requester lacks sufficient permissions to access data stored in the field.  
                 - enum:
                 -     ANYONE: Any role can request the field.
                 -     RESTRICTED: Special permission required to request the field.
     - name: permissions | type: Permissions | description: [Permissions](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/introduction.md#permissions) required to access and modify collection items, defined by the lowest role needed to perform each action.  
        - name: insert | type: Role | description: Role required to insert items into the collection.  Default: `CMS_EDITOR`  
             - enum:
             -     ADMIN: Site administrator.
             -     SITE_MEMBER_AUTHOR: Signed-in user who added content to this collection.
             -     SITE_MEMBER: Any signed-in user.
             -     ANYONE: Any site visitor.
        - name: update | type: Role | description: Role required to update collection items.  Default: `CMS_EDITOR`  
        - name: remove | type: Role | description: Role required to remove items from the collection.  Default: `CMS_EDITOR`  
        - name: read | type: Role | description: Role required to read collection items.  Default: `SITE_MEMBER_AUTHOR`  
     - name: revision | type: string | description: Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must specify the latest revision number.  | read-only: true | validation: format int64
     - name: plugins | type: array<Plugin> | description: Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality.  | validation: maxItems 100
        - ONE-OF: 
           - name: publishOptions | type: PublishPluginOptions | description: Options for the Publish plugin. This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object.md) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.  
              - name: defaultStatus | type: Status | description: Publication status assigned to items that don't specify one.  Default: `PUBLISHED`.  
                     - enum:
                     -     PUBLISHED: Items are published by default.
                     -     DRAFT: Items are drafts by default.
           - name: singleItemOptions | type: SingleItemPluginOptions | description: Options for the Single Item plugin.  
              - name: singleItemId | type: string | description: GUID of the single item in this collection. If you insert or update an item, its GUID value is always changed to this.  | validation: maxLength 16000
           - name: urlizedOptions | type: UrlizedPluginOptions | description: Options for the Urlized plugin.  
              - name: format | type: Format | description: Encoding method for generating a URL in ASCII characters.  Default: `ORIGINAL`.  
                     - enum:
                     -     ORIGINAL: Letters are converted to lower case and spaces are replaced with dashes before generating the encoded URL.
                     -     PLAIN: No changes are made before generating the encoded URL.
           - name: multilingualOptions | type: MultilingualOptions | description: Options for the Multilingual plugin.  
              - name: translatableFieldKeys | type: array<string> | description: IDs of fields to allow translation.  | validation: maxItems 1000, maxLength 1000
           - name: editablePageLinkOptions | type: PageLinkPluginOptions | description: Options for the PageLink plugin.  
              - name: isPersisted | type: boolean | description: Whether page link values are stored with the items.  Default: `false`.  
              - name: isMutable | type: boolean | description: Whether page link values can be updated.  Default: `false`.  
           - name: cmsOptions | type: CmsOptions | description: Options for the CMS plugin.  
              - name: siteSort | type: SiteSort | description: CMS sort, applied when a collection is displayed on a site.  
                 - name: sort | type: array<Sort> | description: Field and order for the site sort.  | validation: maxItems 100
           - name: catalogOptions | type: CatalogOptions | description: Options for the Catalog plugin.  
              - name: nameFieldKey | type: string | description: Key of the collection field that contains the catalog item's name. The referenced field must have type `TEXT`.  Required when configuring the Catalog plugin.  | validation: maxLength 1000
              - name: priceFieldKey | type: string | description: Key of the collection field that contains the catalog item's price. The referenced field must have type `NUMBER`.  Required when configuring the Catalog plugin.  | validation: maxLength 1000
              - name: urlFieldKey | type: string | description: Key of the collection field that contains the catalog item's URL. The referenced field must have type `URL`.  | validation: maxLength 1000
              - name: descriptionFieldKey | type: string | description: Key of the collection field that contains the catalog item's description. The referenced field must have type `TEXT`.  | validation: maxLength 1000
              - name: imageFieldKey | type: string | description: Key of the collection field that contains the catalog item's image. The referenced field must have type `IMAGE` or `MEDIA_IMAGE`.  | validation: maxLength 1000
              - name: quantityFieldKey | type: string | description: Key of the collection field that contains the catalog item's quantity. The referenced field must have type `NUMBER`.  | validation: maxLength 1000
              - name: digitalFileFieldKey | type: string | description: Key of the collection field that contains the catalog item's digital file. The referenced field must have type `SECURED_MEDIA`.  | validation: maxLength 1000
              - name: weightFieldKey | type: string | description: Key of the collection field that contains the catalog item's weight. The referenced field must have type `NUMBER`.  | validation: maxLength 1000
              - name: skuFieldKey | type: string | description: Key of the collection field that contains the catalog item's stock keeping unit (SKU). The referenced field must have type `TEXT`.  | validation: maxLength 1000
              - name: shippableFieldKey | type: string | description: Key of the collection field that indicates whether the catalog item requires shipping. The referenced field must have type `BOOLEAN`.  | validation: maxLength 1000
           - name: draftItemsOptions | type: DraftItemsPluginOptions | description: Options for the Draft Items plugin.  
              - name: draftsCollectionId | type: string | description: GUID of the drafts collection (e.g. "Posts__drafts"). Returned on published collections. Also returned on other views when both collection GUIDs are enabled.  | read-only: true | validation: maxLength 1000
              - name: publishedCollectionId | type: string | description: GUID of the published items collection (e.g. "Posts"). Returned on drafts and combined views. Also returned on published collections when both collection GUIDs are enabled.  | read-only: true | validation: maxLength 256
              - name: draftPermissions | type: DraftPermissions | description: Access levels required to view and manage drafts and change publication status.  
                 - name: manageDrafts | type: AccessLevel | description: Access level required to view/edit/remove items from the drafts collection. Can be set to one of CMS_EDITOR, PRIVILEGED Default: `CMS_EDITOR`  
                         - enum:
                         -     ANYONE: Any subject, including visitors.
                         -     SITE_MEMBER: Any signed-in user (both site members and collaborators).
                         -     SITE_MEMBER_AUTHOR: Any signed-in user, but site members only have access to own items.
                         -     CMS_EDITOR: Site collaborator that has a role with CMS Access permission.
                         -     PRIVILEGED: CMS administrators and users or roles granted with special access.
                 - name: managePublishStatus | type: AccessLevel | description: Access level required to publish draft items and unpublish published items. Can be set to one of CMS_EDITOR, PRIVILEGED Default: `CMS_EDITOR`  
                 - name: viewDrafts | type: AccessLevel | description: Access level required to view draft items. Managing drafts also grants viewing. If omitted, inherits manage_drafts for compatibility.  
              - name: allowedPermissions | type: AllowedDraftPermissions | description: Actual draft management operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`.  | read-only: true 
                 - name: manageDrafts | type: boolean | description: If manage_drafts is permitted for the caller.  
                 - name: managePublishStatus | type: boolean | description: If manage_publish_status is permitted for the caller.  
                 - name: viewDrafts | type: boolean | description: If the caller can view draft items.  
              - name: allowWritesToPublishedCollection | type: boolean | description: Whether writes to the published collection are allowed while the Draft Items plugin is enabled. Defaults to `false` for newly created collections and newly added plugins. Existing schemas that predate this field return `true` for backwards compatibility.  
              - name: draftsAndPublishedCollectionId | type: string | description: GUID of the combined drafts and published items collection (e.g. "Posts__drafts_and_published"), included on every collection view.  | read-only: true | validation: maxLength 1000
        - name: type | type: Type | description: Plugin type.  
             - enum:
             -     PUBLISH: Allows items to be marked as either draft or published. For each item you can set a publishing time when the item will become visible to site visitors.
             -     SINGLE_ITEM: Ensures the collection can have one item at most. Can only be applied to a new collection.
             -     URLIZED: Generates item URLs for collections used by dynamic pages.
             -     GRIDAPPLESS: Deprecated. Will be removed in the future.
             -     MULTILINGUAL: Indicates that the collection is translatable. This allows you to manage translation for selected fields using [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
             -     SHARED: Indicates that collection is shared with current site.
             -     EDITABLE_PAGE_LINK: Indicates that page link fields are persisted and can be updated.
             -     CMS: CMS-specific collection properties.
             -     CATALOG: Indicates that the collection is used as a [Wix Catalog](https://dev.wix.com/docs/rest/business-solutions/e-commerce/catalogs/catalog-service-plugin/introduction.md) app. This plugin is used to manage product data and is required for collections that are part of a catalog.
             -     CATEGORIES: Marks the collection as a Category Group for categorization features.
             -     DRAFT_ITEMS: Enables the draft items collection: safe draft editing with explicit publish step.
     - name: pagingModes | type: array<PagingMode> | description: Paging modes the collection supports. In native collections, offset-based paging is supported by default.  | read-only: true | validation: maxItems 2
         - enum:
         -     OFFSET: Offset-based paging.
         -     CURSOR: Cursor-based paging.
     - name: createdDate | type: string | description: Date the collection was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date the collection was last updated.  | read-only: true | validation: format date-time
     - name: allowedDataPermissions | type: AllowedDataPermissions | description: Actual data operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`  | read-only: true 
        - name: itemRead | type: boolean | description: If data items read permitted  
        - name: itemInsert | type: boolean | description: If for data items insert permitted  
        - name: itemUpdate | type: boolean | description: If data items update permitted  
        - name: itemRemove | type: boolean | description: If data items removal permitted  
     - name: deprecation | type: Deprecation | description: Deprecation metadata for this collection. App collections set this metadata to direct users to a replacement collection.  | read-only: true 
        - name: deprecated | type: boolean | description: Whether this collection is deprecated.  
        - name: deprecationMessage | type: string | description: Message shown to users of a deprecated collection. Use this to identify the replacement collection.  | validation: maxLength 4000


```

### Examples

### Patch a collection
```curl
curl -X PATCH 'https://www.wixapis.com/wix-data/v2/collections/my-first-collection' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: <AUTH>' \
  -d '{
         "dataCollection": {
           "id": "my-first-collection",
           "displayName": "New Display Name"
         }
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.data.collections.patchDataCollection(_id, dataCollection)
 Description: Updates specified properties of a data collection.  Only updates the properties specified in the request, all other properties remain unchanged. The following properties can be updated with this method: `displayName`, `displayField`, and `permissions`. Attempting to update unsupported properties causes this operation to fail.  To update properties in a collection's `fields` array, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field.md). To add or remove `plugins`, use [Add Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/add-data-collection-plugin.md) or [Delete Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-plugin.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  dataCollection, _id
 Method parameters: 
   param name: _id | type: string | description: [Collection GUID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections.md#collection-ids). For example, `my-first-collection`. For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction.md), use `AppName/CollectionName`. | required: true | validation: minLength 1, maxLength 256, immutable
   param name: dataCollection | type: PatchDataCollection | description: A data collection defines the fields, data types, item permissions, and plugins for a set of data items. Use the Data Items API to store and retrieve the items themselves. | required: true 
        - name: _id | type: string | description: [Collection GUID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections.md#collection-ids). For example, `my-first-collection`. For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction.md), use `AppName/CollectionName`.  | validation: minLength 1, maxLength 256, immutable
        - name: displayName | type: string | description: Collection's display name as shown in the CMS. For example, `My First Collection`.  Default: The collection GUID.  | validation: maxLength 1000
        - name: displayField | type: string | description: Field whose value the CMS displays to represent the collection item when referenced in a different collection.  Default: The first field in the request, or `title` if no fields are specified.  | validation: maxLength 1000
        - name: fields | type: array<Field> | description: Collection's field structure.  | validation: maxItems 1000
           - ONE-OF: 
              - name: numberRange | type: NumberRange | description: Range of possible values for a numerical field.  
                 - name: min | type: number | description: Minimum permitted value for a numerical field.  Default: No validation  
                 - name: max | type: number | description: Maximum permitted value for a numerical field.  Default: No validation  
              - name: stringLengthRange | type: StringLengthRange | description: Length range permitted for a text field. Relevant for fields that hold strings, such as those of type `TEXT` or `RICH_TEXT`.  
                 - name: minLength | type: integer | description: Minimum permitted length for a text field.  Default: No validation  | validation: format int32
                 - name: maxLength | type: integer | description: Maximum permitted length for a text field.  Default: No validation  | validation: format int32
              - name: arraySizeRange | type: ArraySizeRange | description: Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  
                 - name: minSize | type: integer | description: Minimum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  Default: No validation  | validation: format int32
                 - name: maxSize | type: integer | description: Maximum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  Default: No validation  | validation: format int32
           - name: key | type: string | description: Unique identifier for the field. For example, `firstName`.  | validation: maxLength 1000
           - name: displayName | type: string | description: Field's display name when displayed in the CMS. For example, `First Name`.  | validation: maxLength 1000
           - name: type | type: Type | description: Field's data type.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
                 - enum:
                 -     TEXT: Plain-text string.
                 -     NUMBER: Number.
                 -     DATE: Date string in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
                 -     DATETIME: [JavaScript Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data.md)) or an object in the following format: `"someFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}` ([REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md)).
                 -     IMAGE: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
                 -     BOOLEAN: Boolean `true` or `false` value.
                 -     DOCUMENT: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
                 -     URL: URL in one of the following formats: `http://`, `https://`, `ftp://`, `mailto:`, `sms:`, `tel:`.
                 -     RICH_TEXT: [Rich-text](https://dev.wix.com/docs/rest/articles/getting-started/rich-text.md) string that may contain a subset of HTML tags.
                 -     VIDEO: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
                 -     ANY: Any field type.
                 -     ARRAY_STRING: Array of strings.
                 -     ARRAY_DOCUMENT: Array of documents: web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URLs.
                 -     AUDIO: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
                 -     TIME: Time string in `hh:mm:ss.SSS` format.
                 -     LANGUAGE: Language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. These may include country codes in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
                 -     RICH_CONTENT: [Rich content](https://dev.wix.com/docs/ricos/getting-started/introduction.md).
                 -     MEDIA_GALLERY: Array of web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URLs.
                 -     ADDRESS: Physical address object ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data.md#address-object) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md#address-object)).
                 -     PAGE_LINK: [Dynamic page link](https://support.wix.com/en/article/cms-linking-to-dynamic-pages).
                 -     REFERENCE: Reference to another item in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items.md)) to learn about item references.  If you select this type, then you must pass the `referencedCollectionId` field as well.
                 -     MULTI_REFERENCE: References to multiple items in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items.md)) to learn about item references.
                 -     OBJECT: JSON object.
                 -     ARRAY: Array.
                 -     LEGACY_TIME: Deprecated type that might appear in legacy collections.
                 -     LEGACY_BOOK: Deprecated type that might appear in legacy collections.
                 -     LEGACY_EXTERNAL_URL: Deprecated type that might appear in legacy collections.
                 -     LEGACY_BROKEN_REFERENCE: Deprecated type that might appear in legacy collections.
                 -     LEGACY_IMAGE: Deprecated type that might appear in legacy collections.
                 -     LEGACY_COLOR: Deprecated type that might appear in legacy collections.
                 -     LEGACY_EXTERNAL_VIDEO: Deprecated type that might appear in legacy collections.
                 -     SLUG: SLUG type used for dynamic page URLs.
                 -     EMAIL: Email.
                 -     SECURED_MEDIA: Secured media object with digital file metadata.
                 -     MEDIA_IMAGE: Media image object.
                 -     MEDIA_VECTOR_ART: Media vector art object.
           - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
              - ONE-OF: 
                 - name: reference | type: Reference | description: Metadata for a reference field.  
                    - name: referencedCollectionId | type: string | description: Referenced collection GUID.  | validation: minLength 1, maxLength 256
                 - name: multiReference | type: MultiReference | description: Metadata for a multi-reference field.  
                    - name: referencedCollectionId | type: string | description: Referenced collection GUID.  | validation: minLength 1, maxLength 256
                    - name: referencingFieldKey | type: string | description: Referencing field GUID.  | validation: maxLength 1000
                    - name: referencingDisplayName | type: string | description: Display name in the CMS for the referenced data.  | validation: maxLength 1000
                 - name: object | type: Object | description: Metadata for an object field.  
                    - name: fields | type: array<ObjectField> | description: Fields within the object.  | validation: maxItems 1000
                       - name: key | type: string | description: Field GUID.  | validation: maxLength 1000
                       - name: displayName | type: string | description: Display name for the field.  | validation: maxLength 1000
                       - name: type | type: Type | description: Field type.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
                       - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
                    - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
                 - name: array | type: Array | description: Metadata for an array field.  
                    - name: elementType | type: Type | description: Element's data type.  
                    - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
                    - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                    - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                    - name: defaultValue | type: array<Value> | description:   
                       - ONE-OF: 
                          - name: nullValue | type:  | description:   
                          - name: numberValue | type: number | description:   
                          - name: stringValue | type: string | description:   
                          - name: boolValue | type: boolean | description:   
                          - name: structValue | type: object | description:   
                          - name: listValue | type: ListValue | description:   
                             - name: values | type: array<Value> | description:   
                 - name: pageLink | type: PageLink | description: Metadata for a page link field.  
                    - name: calculator | type: Calculator | description: Calculation pattern used to generate the page link. Required for page link fields.  
                       - ONE-OF: 
                          - name: fieldsPattern | type: FieldsPattern | description: Value is calculated according to pattern, whitespaces are replaced with dash [-].  
                             - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: maxLength 1000
                             - name: lowercase | type: boolean | description: Whether to convert the generated value to lowercase. Default: `false`.  
                          - name: urlizedOnlyPattern | type: UrlizedOnlyPattern | description: Value is only URL encoded.  
                             - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: maxLength 1000
                    - name: linkedRouterPage | type: string | description: Defines reference to router pattern in the site document.  | validation: maxLength 1000
                    - name: pageLinkType | type: PageLinkType | description: Defines the type of the page link.  
                             - enum:
                             -     COLLECTION_DEFINED: Page link with field substitution patterns stored in the data collection. Example: "path/{plainField}" where plainField can be any supported type. Can be persistent (stored in database) or overlay (calculated on-the-fly).
                             -     ROUTER_DEFINED: Page link with field substitution patterns provided by Routers Config. Only supports SLUG type fields in the template (e.g., "products/{slug}"). Always read-only overlay fields (never persisted in database). Page link definitions are NOT stored in the data collection.
                 - name: slug | type: Slug | description: Metadata for a slug field.  
                    - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: minLength 1, maxLength 1000
                    - name: minLength | type: integer | description: Minimum permitted length for a string field.  | validation: format int32
                    - name: maxLength | type: integer | description: Maximum permitted length for a string field.  | validation: format int32
                    - name: defaultValue | type: string | description:   
                 - name: text | type: Text | description: Metadata for TEXT.  
                    - ONE-OF: 
                       - name: textValidation | type: TextValidation | description: Length and pattern constraints for the text value.  
                          - name: minLength | type: integer | description: Minimum permitted length for a text field.  | validation: format int32
                          - name: maxLength | type: integer | description: Maximum permitted length for a text field.  | validation: format int32
                          - name: pattern | type: string | description: Custom regex pattern for string validation.  
                       - name: enumValues | type: EnumValues | description: Allowed text values.  
                          - name: values | type: array<string> | description: Allowed enum values for string fields.  | validation: minItems 1, maxItems 512, maxLength 1000
                    - name: defaultValue | type: string | description:   
                 - name: number | type: Number | description: Metadata for NUMBER.  
                    - name: defaultValue | type: number | description: Value assigned when a data item omits this field.  
                    - name: min | type: number | description: Minimum permitted value for a numerical field.  
                    - name: max | type: number | description: Maximum permitted value for a numerical field.  
                 - name: date | type: Date | description: Metadata for DATE.  
                    - ONE-OF: 
                       - name: defaultValueFixed | type: Date | description: Fixed date and time used as the default value.  
                       - name: defaultValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the default value.  | validation: format int32
                    - ONE-OF: 
                       - name: minDateFixed | type: Date | description: Earliest permitted date and time.  
                       - name: minValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the earliest permitted date.  | validation: format int32
                    - ONE-OF: 
                       - name: maxDateFixed | type: Date | description: Latest permitted date and time.  
                       - name: maxValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the latest permitted date.  | validation: format int32
                 - name: datetime | type: Datetime | description: Metadata for DATETIME.  
                    - ONE-OF: 
                       - name: defaultValueFixed | type: Date | description: Fixed date and time used as the default value.  
                       - name: defaultValueOffsetFromNowInSeconds | type: integer | description: Offset from the current time, in seconds, used as the default value.  | validation: format int32
                    - ONE-OF: 
                       - name: minDateFixed | type: Date | description: Earliest permitted date and time.  
                       - name: minDateOffsetFromNowInSeconds | type: integer | description:   | validation: format int32
                    - ONE-OF: 
                       - name: maxDateFixed | type: Date | description: Latest permitted date and time.  
                       - name: maxDateOffsetFromNowInSeconds | type: integer | description:   | validation: format int32
                 - name: image | type: Image | description: Metadata for IMAGE.  
                    - name: defaultValue | type: string | description:   
                 - name: boolean | type: Boolean | description: Metadata for BOOLEAN.  
                    - name: defaultValue | type: boolean | description: Value assigned when a data item omits this field.  
                 - name: document | type: Document | description: Metadata for DOCUMENT.  
                    - name: defaultValue | type: string | description:   
                 - name: url | type: Url | description: Metadata for URL.  
                    - name: defaultValue | type: string | description: Value assigned when a data item omits this field.  | validation: minLength 1, maxLength 2048
                    - name: textValidation | type: TextValidation | description: Length and pattern constraints for the text value.  
                 - name: richText | type: RichText | description: Metadata for RICH_TEXT.  
                    - name: defaultValue | type: string | description:   
                    - name: minLength | type: integer | description: Minimum permitted length for a string field.  | validation: format int32
                    - name: maxLength | type: integer | description: Maximum permitted length for a string field.  | validation: format int32
                 - name: video | type: Video | description: Metadata for VIDEO.  
                    - name: defaultValue | type: string | description:   
                 - name: arrayString | type: ArrayString | description: Metadata for ARRAY_STRING.  
                    - name: defaultValue | type: array<string> | description:   
                    - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                    - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                    - name: minLengthForItem | type: integer | description: Minimum permitted length for a each item.  | validation: format int32
                    - name: maxLengthForItem | type: integer | description: Maximum permitted length for a each item.  | validation: format int32
                 - name: arrayDocument | type: ArrayDocument | description: Metadata for ARRAY_DOCUMENT.  
                    - name: defaultValue | type: array<string> | description:   
                    - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                    - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                 - name: audio | type: Audio | description: Metadata for AUDIO.  
                    - name: defaultValue | type: string | description:   
                 - name: time | type: Time | description: Metadata for TIME.  
                    - name: defaultValue | type: string | description: Time value in format: hh:mm (e.g., "00:00", "09:30").  | validation: minLength 5, maxLength 5
                    - name: minTime | type: string | description: Minimum permitted time-of-day (inclusive). Time value in format: hh:mm (e.g., "00:00", "09:30").  | validation: minLength 5, maxLength 5
                    - name: maxTime | type: string | description: Maximum permitted time-of-day (inclusive). Time value in format: hh:mm (e.g., "23:59", "17:00").  | validation: minLength 5, maxLength 5
                 - name: richContent | type: RichContent | description: Metadata for RICH_CONTENT.  
                    - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
                 - name: mediaGallery | type: MediaGallery | description: Metadata for MEDIA_GALLERY.  
                    - name: defaultValue | type: array | description:   
                 - name: address | type: Address | description: Metadata for ADDRESS.  
                    - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
                 - name: email | type: Email | description: Metadata for EMAIL.  
                    - name: defaultValue | type: string | description: Value assigned when a data item omits this field.  | validation: format EMAIL
                 - name: legacyColor | type: LegacyColor | description: Metadata for LEGACY_COLOR.  
                    - name: defaultValue | type: string | description:   
                 - name: mediaImage | type: MediaImage | description: Metadata for MEDIA_IMAGE.  
                    - name: defaultValue | type: object | description: Image object used when the field is omitted from a new item.  
           - name: encrypted | type: boolean | description: Whether the field is encrypted.  
           - name: description | type: string | description: Field description.  | validation: maxLength 16000
           - name: readOnly | type: boolean | description: Whether the field is read-only. A read-only field can't be changed.  Default: `false`  
           - name: immutable | type: boolean | description: Whether the field is immutable. An immutable field can be set once, but then can't be updated.  Default: `false`  
           - name: required | type: boolean | description: Whether the field is required.  Default: `false`  
           - name: plugins | type: array<FieldPlugin> | description: Additional optional plugins for the field.  | validation: maxItems 100
              - ONE-OF: 
                 - name: cmsOptions | type: CmsOptions | description: Options for the CMS plugin.  
                    - name: internal | type: boolean | description: Indicates an internal CMS field. The CMS does not display internal fields.  Default: `false`  
                 - name: categoryFieldOptions | type: CategoryFieldOptions | description: Options for the CATEGORY_FIELD plugin.  
                    - name: isPrimary | type: boolean | description: Transient input-only flag. When set to `true` during create/update, designates this category field's group as the target for `_primaryCategory`. The flag is not persisted; `_primaryCategory` remains the source of truth.  Default: `false`  
              - name: type | type: Type | description: Field plugin type.  
                     - enum:
                     -     UNKNOWN: Unknown plugin type.
                     -     CMS: CMS-related field attributes.
                     -     CATEGORY_FIELD: Marks a multi-reference field as a category field linking to a Category Group.
                     -     CATEGORY_CONSUMER: Marks a back-reference field on Category Groups indicating a consumer relationship.
                     -     PRIMARY_CATEGORY_FIELD: Marks the auto-managed primary category single-reference field on a consumer collection.
        - name: permissions | type: Permissions | description: [Permissions](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/introduction.md#permissions) required to access and modify collection items, defined by the lowest role needed to perform each action.  
           - name: insert | type: Role | description: Role required to insert items into the collection.  Default: `CMS_EDITOR`  
                 - enum:
                 -     ADMIN: Site administrator.
                 -     SITE_MEMBER_AUTHOR: Signed-in user who added content to this collection.
                 -     SITE_MEMBER: Any signed-in user.
                 -     ANYONE: Any site visitor.
           - name: update | type: Role | description: Role required to update collection items.  Default: `CMS_EDITOR`  
           - name: remove | type: Role | description: Role required to remove items from the collection.  Default: `CMS_EDITOR`  
           - name: read | type: Role | description: Role required to read collection items.  Default: `SITE_MEMBER_AUTHOR`  
        - name: plugins | type: array<Plugin> | description: Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality.  | validation: maxItems 100
           - ONE-OF: 
              - name: publishOptions | type: PublishPluginOptions | description: Options for the Publish plugin. This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object.md) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.  
                 - name: defaultStatus | type: Status | description: Publication status assigned to items that don't specify one.  Default: `PUBLISHED`.  
                         - enum:
                         -     PUBLISHED: Items are published by default.
                         -     DRAFT: Items are drafts by default.
              - name: singleItemOptions | type: SingleItemPluginOptions | description: Options for the Single Item plugin.  
                 - name: singleItemId | type: string | description: GUID of the single item in this collection. If you insert or update an item, its GUID value is always changed to this.  | validation: maxLength 16000
              - name: urlizedOptions | type: UrlizedPluginOptions | description: Options for the Urlized plugin.  
                 - name: format | type: Format | description: Encoding method for generating a URL in ASCII characters.  Default: `ORIGINAL`.  
                         - enum:
                         -     ORIGINAL: Letters are converted to lower case and spaces are replaced with dashes before generating the encoded URL.
                         -     PLAIN: No changes are made before generating the encoded URL.
              - name: multilingualOptions | type: MultilingualOptions | description: Options for the Multilingual plugin.  
                 - name: translatableFieldKeys | type: array<string> | description: IDs of fields to allow translation.  | validation: maxItems 1000, maxLength 1000
              - name: editablePageLinkOptions | type: PageLinkPluginOptions | description: Options for the PageLink plugin.  
                 - name: isPersisted | type: boolean | description: Whether page link values are stored with the items.  Default: `false`.  
                 - name: isMutable | type: boolean | description: Whether page link values can be updated.  Default: `false`.  
              - name: cmsOptions | type: CmsOptions | description: Options for the CMS plugin.  
                 - name: siteSort | type: SiteSort | description: CMS sort, applied when a collection is displayed on a site.  
                    - name: sort | type: array<Sort> | description: Field and order for the site sort.  | validation: maxItems 100
                       - name: fieldKey | type: string | description: Field to sort by.  | validation: maxLength 1000
                       - name: direction | type: Direction | description: Sort order. Use `ASC` for ascending order or `DESC` for descending order.  Default: `ASC`  
                                 - enum: ASC, DESC
              - name: catalogOptions | type: CatalogOptions | description: Options for the Catalog plugin.  
                 - name: nameFieldKey | type: string | description: Key of the collection field that contains the catalog item's name. The referenced field must have type `TEXT`.  Required when configuring the Catalog plugin.  | validation: maxLength 1000
                 - name: priceFieldKey | type: string | description: Key of the collection field that contains the catalog item's price. The referenced field must have type `NUMBER`.  Required when configuring the Catalog plugin.  | validation: maxLength 1000
                 - name: urlFieldKey | type: string | description: Key of the collection field that contains the catalog item's URL. The referenced field must have type `URL`.  | validation: maxLength 1000
                 - name: descriptionFieldKey | type: string | description: Key of the collection field that contains the catalog item's description. The referenced field must have type `TEXT`.  | validation: maxLength 1000
                 - name: imageFieldKey | type: string | description: Key of the collection field that contains the catalog item's image. The referenced field must have type `IMAGE` or `MEDIA_IMAGE`.  | validation: maxLength 1000
                 - name: quantityFieldKey | type: string | description: Key of the collection field that contains the catalog item's quantity. The referenced field must have type `NUMBER`.  | validation: maxLength 1000
                 - name: digitalFileFieldKey | type: string | description: Key of the collection field that contains the catalog item's digital file. The referenced field must have type `SECURED_MEDIA`.  | validation: maxLength 1000
                 - name: weightFieldKey | type: string | description: Key of the collection field that contains the catalog item's weight. The referenced field must have type `NUMBER`.  | validation: maxLength 1000
                 - name: skuFieldKey | type: string | description: Key of the collection field that contains the catalog item's stock keeping unit (SKU). The referenced field must have type `TEXT`.  | validation: maxLength 1000
                 - name: shippableFieldKey | type: string | description: Key of the collection field that indicates whether the catalog item requires shipping. The referenced field must have type `BOOLEAN`.  | validation: maxLength 1000
              - name: draftItemsOptions | type: DraftItemsPluginOptions | description: Options for the Draft Items plugin.  
                 - name: draftPermissions | type: DraftPermissions | description: Access levels required to view and manage drafts and change publication status.  
                    - name: manageDrafts | type: AccessLevel | description: Access level required to view/edit/remove items from the drafts collection. Can be set to one of CMS_EDITOR, PRIVILEGED Default: `CMS_EDITOR`  
                             - enum:
                             -     ANYONE: Any subject, including visitors.
                             -     SITE_MEMBER: Any signed-in user (both site members and collaborators).
                             -     SITE_MEMBER_AUTHOR: Any signed-in user, but site members only have access to own items.
                             -     CMS_EDITOR: Site collaborator that has a role with CMS Access permission.
                             -     PRIVILEGED: CMS administrators and users or roles granted with special access.
                    - name: managePublishStatus | type: AccessLevel | description: Access level required to publish draft items and unpublish published items. Can be set to one of CMS_EDITOR, PRIVILEGED Default: `CMS_EDITOR`  
                    - name: viewDrafts | type: AccessLevel | description: Access level required to view draft items. Managing drafts also grants viewing. If omitted, inherits manage_drafts for compatibility.  
                 - name: allowWritesToPublishedCollection | type: boolean | description: Whether writes to the published collection are allowed while the Draft Items plugin is enabled. Defaults to `false` for newly created collections and newly added plugins. Existing schemas that predate this field return `true` for backwards compatibility.  
           - name: type | type: Type | description: Plugin type.  
                 - enum:
                 -     PUBLISH: Allows items to be marked as either draft or published. For each item you can set a publishing time when the item will become visible to site visitors.
                 -     SINGLE_ITEM: Ensures the collection can have one item at most. Can only be applied to a new collection.
                 -     URLIZED: Generates item URLs for collections used by dynamic pages.
                 -     GRIDAPPLESS: Deprecated. Will be removed in the future.
                 -     MULTILINGUAL: Indicates that the collection is translatable. This allows you to manage translation for selected fields using [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
                 -     SHARED: Indicates that collection is shared with current site.
                 -     EDITABLE_PAGE_LINK: Indicates that page link fields are persisted and can be updated.
                 -     CMS: CMS-specific collection properties.
                 -     CATALOG: Indicates that the collection is used as a [Wix Catalog](https://dev.wix.com/docs/rest/business-solutions/e-commerce/catalogs/catalog-service-plugin/introduction.md) app. This plugin is used to manage product data and is required for collections that are part of a catalog.
                 -     CATEGORIES: Marks the collection as a Category Group for categorization features.
                 -     DRAFT_ITEMS: Enables the draft items collection: safe draft editing with explicit publish step.
 Return type: PROMISE<PatchDataCollectionResponse>
  - name: dataCollection | type: DataCollection | description: Updated data collection.  
     - name: _id | type: string | description: [Collection GUID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections.md#collection-ids). For example, `my-first-collection`. For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction.md), use `AppName/CollectionName`.  | validation: minLength 1, maxLength 256, immutable
     - name: collectionType | type: CollectionType | description: Collection type. Indicates how the collection was created and how it is stored.  | read-only: true 
         - enum:
         -     NATIVE: User-created collection.
         -     WIX_APP: [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app when it is installed. This type of collection can be modified dynamically by that app (for example, Wix Forms).
         -     BLOCKS_APP: Collection created by a Wix Blocks app.
         -     EXTERNAL: Collection located in externally connected storage.
     - name: ownerAppId | type: string | description: GUID of the app that defined this collection. For collections defined by Wix users, this value is null.  | read-only: true | validation: format GUID
     - name: maxPageSize | type: integer | description: Maximum number of items returned in a single query, based on the underlying storage. Native collections have a maximum page size of 1000 for offset-based queries or 100 for cursor-based queries. External collections' maximum page size defaults to 50, but an external provider can set any maximum value up to 1000.  | read-only: true | validation: format int32
     - name: displayName | type: string | description: Collection's display name as shown in the CMS. For example, `My First Collection`.  Default: The collection GUID.  | validation: maxLength 1000
     - name: defaultDisplayOrder | type: Sort | description: Default item sorting order when a query doesn't specify one.  | read-only: true 
        - name: fieldKey | type: string | description: Field to sort by.  | validation: maxLength 1000
        - name: direction | type: Direction | description: Sort order. Use `ASC` for ascending order or `DESC` for descending order.  Default: `ASC`  
             - enum: ASC, DESC
     - name: displayNamespace | type: string | description: UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings. Empty for all data collections not owned by Wix apps.  | read-only: true | validation: maxLength 1000
     - name: displayField | type: string | description: Field whose value the CMS displays to represent the collection item when referenced in a different collection.  Default: The first field in the request, or `title` if no fields are specified.  | validation: maxLength 1000
     - name: capabilities | type: CollectionCapabilities | description: Capabilities the collection supports. Capabilities are set by default. Values depend on the collection type.  | read-only: true 
        - name: dataOperations | type: array<DataOperation> | description: Data operations the collection supports. The listed operations can be performed on data the collection contains.  > **Note**: The `PATCH` and `BULK_PATCH` operations aren't currently supported.  | validation: maxItems 100
             - enum: AGGREGATE, BULK_INSERT, BULK_REMOVE, BULK_SAVE, BULK_UPDATE, COUNT, DISTINCT, FIND, GET, INSERT, INSERT_REFERENCE, IS_REFERENCED, QUERY_REFERENCED, REMOVE, REMOVE_REFERENCE, REPLACE_REFERENCES, SAVE, TRUNCATE, UPDATE, PATCH, BULK_PATCH
        - name: collectionOperations | type: array<CollectionOperation> | description: Collection operations supported. The listed operations can be performed on the collection itself.  | validation: maxItems 100
             - enum:
             -     UPDATE: Allows updating the collection's structure, for example adding, updating, or deleting fields. If not included, the collection's structure can't be changed.
             -     REMOVE: Allows deleting the entire collection. If not included, the collection can't be deleted.
        - name: indexLimits | type: IndexLimits | description: Maximum number of indexes for the collection.  
           - name: regular | type: integer | description: Maximum number of regular (non-unique) indexes allowed for this collection.  
           - name: unique | type: integer | description: Maximum number of unique indexes allowed for this collection.  
           - name: total | type: integer | description: Maximum number of regular and unique indexes allowed for this collection.  
     - name: fields | type: array<Field> | description: Collection's field structure.  | validation: maxItems 1000
        - ONE-OF: 
           - name: numberRange | type: NumberRange | description: Range of possible values for a numerical field.  
              - name: min | type: number | description: Minimum permitted value for a numerical field.  Default: No validation  
              - name: max | type: number | description: Maximum permitted value for a numerical field.  Default: No validation  
           - name: stringLengthRange | type: StringLengthRange | description: Length range permitted for a text field. Relevant for fields that hold strings, such as those of type `TEXT` or `RICH_TEXT`.  
              - name: minLength | type: integer | description: Minimum permitted length for a text field.  Default: No validation  | validation: format int32
              - name: maxLength | type: integer | description: Maximum permitted length for a text field.  Default: No validation  | validation: format int32
           - name: arraySizeRange | type: ArraySizeRange | description: Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  
              - name: minSize | type: integer | description: Minimum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  Default: No validation  | validation: format int32
              - name: maxSize | type: integer | description: Maximum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.  Default: No validation  | validation: format int32
        - name: key | type: string | description: Unique identifier for the field. For example, `firstName`.  | validation: maxLength 1000
        - name: displayName | type: string | description: Field's display name when displayed in the CMS. For example, `First Name`.  | validation: maxLength 1000
        - name: type | type: Type | description: Field's data type.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
             - enum:
             -     TEXT: Plain-text string.
             -     NUMBER: Number.
             -     DATE: Date string in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
             -     DATETIME: [JavaScript Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data.md)) or an object in the following format: `"someFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}` ([REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md)).
             -     IMAGE: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
             -     BOOLEAN: Boolean `true` or `false` value.
             -     DOCUMENT: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
             -     URL: URL in one of the following formats: `http://`, `https://`, `ftp://`, `mailto:`, `sms:`, `tel:`.
             -     RICH_TEXT: [Rich-text](https://dev.wix.com/docs/rest/articles/getting-started/rich-text.md) string that may contain a subset of HTML tags.
             -     VIDEO: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
             -     ANY: Any field type.
             -     ARRAY_STRING: Array of strings.
             -     ARRAY_DOCUMENT: Array of documents: web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URLs.
             -     AUDIO: Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URL.
             -     TIME: Time string in `hh:mm:ss.SSS` format.
             -     LANGUAGE: Language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. These may include country codes in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format.
             -     RICH_CONTENT: [Rich content](https://dev.wix.com/docs/ricos/getting-started/introduction.md).
             -     MEDIA_GALLERY: Array of web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction.md) URLs.
             -     ADDRESS: Physical address object ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data.md#address-object) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md#address-object)).
             -     PAGE_LINK: [Dynamic page link](https://support.wix.com/en/article/cms-linking-to-dynamic-pages).
             -     REFERENCE: Reference to another item in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items.md)) to learn about item references.  If you select this type, then you must pass the `referencedCollectionId` field as well.
             -     MULTI_REFERENCE: References to multiple items in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items.md)) to learn about item references.
             -     OBJECT: JSON object.
             -     ARRAY: Array.
             -     LEGACY_TIME: Deprecated type that might appear in legacy collections.
             -     LEGACY_BOOK: Deprecated type that might appear in legacy collections.
             -     LEGACY_EXTERNAL_URL: Deprecated type that might appear in legacy collections.
             -     LEGACY_BROKEN_REFERENCE: Deprecated type that might appear in legacy collections.
             -     LEGACY_IMAGE: Deprecated type that might appear in legacy collections.
             -     LEGACY_COLOR: Deprecated type that might appear in legacy collections.
             -     LEGACY_EXTERNAL_VIDEO: Deprecated type that might appear in legacy collections.
             -     SLUG: SLUG type used for dynamic page URLs.
             -     EMAIL: Email.
             -     SECURED_MEDIA: Secured media object with digital file metadata.
             -     MEDIA_IMAGE: Media image object.
             -     MEDIA_VECTOR_ART: Media vector art object.
        - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
           - ONE-OF: 
              - name: reference | type: Reference | description: Metadata for a reference field.  
                 - name: referencedCollectionId | type: string | description: Referenced collection GUID.  | validation: minLength 1, maxLength 256
              - name: multiReference | type: MultiReference | description: Metadata for a multi-reference field.  
                 - name: referencedCollectionId | type: string | description: Referenced collection GUID.  | validation: minLength 1, maxLength 256
                 - name: referencingFieldKey | type: string | description: Referencing field GUID.  | validation: maxLength 1000
                 - name: referencingDisplayName | type: string | description: Display name in the CMS for the referenced data.  | validation: maxLength 1000
              - name: object | type: Object | description: Metadata for an object field.  
                 - name: fields | type: array<ObjectField> | description: Fields within the object.  | validation: maxItems 1000
                    - name: key | type: string | description: Field GUID.  | validation: maxLength 1000
                    - name: displayName | type: string | description: Display name for the field.  | validation: maxLength 1000
                    - name: type | type: Type | description: Field type.  Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data.md).  
                    - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
                    - name: capabilities | type: FieldCapabilities | description: Capabilities the object field supports.  | read-only: true 
                       - name: sortable | type: boolean | description: Whether the collection can be sorted by this field.  Default: `false`  
                       - name: queryOperators | type: array<QueryOperator> | description: Query operators that can be used for this field.  | validation: maxItems 100
                                 - enum: EQ, LT, GT, NE, LTE, GTE, STARTS_WITH, ENDS_WITH, CONTAINS, HAS_SOME, HAS_ALL, EXISTS, URLIZED
                 - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
              - name: array | type: Array | description: Metadata for an array field.  
                 - name: elementType | type: Type | description: Element's data type.  
                 - name: typeMetadata | type: TypeMetadata | description: Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link.  
                 - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                 - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                 - name: defaultValue | type: array<Value> | description:   
                    - ONE-OF: 
                       - name: nullValue | type:  | description:   
                       - name: numberValue | type: number | description:   
                       - name: stringValue | type: string | description:   
                       - name: boolValue | type: boolean | description:   
                       - name: structValue | type: object | description:   
                       - name: listValue | type: ListValue | description:   
                          - name: values | type: array<Value> | description:   
              - name: pageLink | type: PageLink | description: Metadata for a page link field.  
                 - name: calculator | type: Calculator | description: Calculation pattern used to generate the page link. Required for page link fields.  
                    - ONE-OF: 
                       - name: fieldsPattern | type: FieldsPattern | description: Value is calculated according to pattern, whitespaces are replaced with dash [-].  
                          - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: maxLength 1000
                          - name: lowercase | type: boolean | description: Whether to convert the generated value to lowercase. Default: `false`.  
                       - name: urlizedOnlyPattern | type: UrlizedOnlyPattern | description: Value is only URL encoded.  
                          - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: maxLength 1000
                 - name: linkedRouterPage | type: string | description: Defines reference to router pattern in the site document.  | validation: maxLength 1000
                 - name: pageLinkType | type: PageLinkType | description: Defines the type of the page link.  
                         - enum:
                         -     COLLECTION_DEFINED: Page link with field substitution patterns stored in the data collection. Example: "path/{plainField}" where plainField can be any supported type. Can be persistent (stored in database) or overlay (calculated on-the-fly).
                         -     ROUTER_DEFINED: Page link with field substitution patterns provided by Routers Config. Only supports SLUG type fields in the template (e.g., "products/{slug}"). Always read-only overlay fields (never persisted in database). Page link definitions are NOT stored in the data collection.
              - name: slug | type: Slug | description: Metadata for a slug field.  
                 - name: pattern | type: string | description: Pattern used to generate the field value from item properties.  | validation: minLength 1, maxLength 1000
                 - name: minLength | type: integer | description: Minimum permitted length for a string field.  | validation: format int32
                 - name: maxLength | type: integer | description: Maximum permitted length for a string field.  | validation: format int32
                 - name: defaultValue | type: string | description:   
              - name: text | type: Text | description: Metadata for TEXT.  
                 - ONE-OF: 
                    - name: textValidation | type: TextValidation | description: Length and pattern constraints for the text value.  
                       - name: minLength | type: integer | description: Minimum permitted length for a text field.  | validation: format int32
                       - name: maxLength | type: integer | description: Maximum permitted length for a text field.  | validation: format int32
                       - name: pattern | type: string | description: Custom regex pattern for string validation.  
                    - name: enumValues | type: EnumValues | description: Allowed text values.  
                       - name: values | type: array<string> | description: Allowed enum values for string fields.  | validation: minItems 1, maxItems 512, maxLength 1000
                 - name: defaultValue | type: string | description:   
              - name: number | type: Number | description: Metadata for NUMBER.  
                 - name: defaultValue | type: number | description: Value assigned when a data item omits this field.  
                 - name: min | type: number | description: Minimum permitted value for a numerical field.  
                 - name: max | type: number | description: Maximum permitted value for a numerical field.  
              - name: date | type: Date | description: Metadata for DATE.  
                 - ONE-OF: 
                    - name: defaultValueFixed | type: Date | description: Fixed date and time used as the default value.  
                    - name: defaultValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the default value.  | validation: format int32
                 - ONE-OF: 
                    - name: minDateFixed | type: Date | description: Earliest permitted date and time.  
                    - name: minValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the earliest permitted date.  | validation: format int32
                 - ONE-OF: 
                    - name: maxDateFixed | type: Date | description: Latest permitted date and time.  
                    - name: maxValueOffsetFromNowInDays | type: integer | description: Offset from the current date, in days, used as the latest permitted date.  | validation: format int32
              - name: datetime | type: Datetime | description: Metadata for DATETIME.  
                 - ONE-OF: 
                    - name: defaultValueFixed | type: Date | description: Fixed date and time used as the default value.  
                    - name: defaultValueOffsetFromNowInSeconds | type: integer | description: Offset from the current time, in seconds, used as the default value.  | validation: format int32
                 - ONE-OF: 
                    - name: minDateFixed | type: Date | description: Earliest permitted date and time.  
                    - name: minDateOffsetFromNowInSeconds | type: integer | description:   | validation: format int32
                 - ONE-OF: 
                    - name: maxDateFixed | type: Date | description: Latest permitted date and time.  
                    - name: maxDateOffsetFromNowInSeconds | type: integer | description:   | validation: format int32
              - name: image | type: Image | description: Metadata for IMAGE.  
                 - name: defaultValue | type: string | description:   
              - name: boolean | type: Boolean | description: Metadata for BOOLEAN.  
                 - name: defaultValue | type: boolean | description: Value assigned when a data item omits this field.  
              - name: document | type: Document | description: Metadata for DOCUMENT.  
                 - name: defaultValue | type: string | description:   
              - name: url | type: Url | description: Metadata for URL.  
                 - name: defaultValue | type: string | description: Value assigned when a data item omits this field.  | validation: minLength 1, maxLength 2048
                 - name: textValidation | type: TextValidation | description: Length and pattern constraints for the text value.  
              - name: richText | type: RichText | description: Metadata for RICH_TEXT.  
                 - name: defaultValue | type: string | description:   
                 - name: minLength | type: integer | description: Minimum permitted length for a string field.  | validation: format int32
                 - name: maxLength | type: integer | description: Maximum permitted length for a string field.  | validation: format int32
              - name: video | type: Video | description: Metadata for VIDEO.  
                 - name: defaultValue | type: string | description:   
              - name: arrayString | type: ArrayString | description: Metadata for ARRAY_STRING.  
                 - name: defaultValue | type: array<string> | description:   
                 - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                 - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
                 - name: minLengthForItem | type: integer | description: Minimum permitted length for a each item.  | validation: format int32
                 - name: maxLengthForItem | type: integer | description: Maximum permitted length for a each item.  | validation: format int32
              - name: arrayDocument | type: ArrayDocument | description: Metadata for ARRAY_DOCUMENT.  
                 - name: defaultValue | type: array<string> | description:   
                 - name: minSize | type: integer | description: Minimum permitted number of items in an array field.  | validation: format int32
                 - name: maxSize | type: integer | description: Maximum permitted number of items in an array field.  | validation: format int32
              - name: audio | type: Audio | description: Metadata for AUDIO.  
                 - name: defaultValue | type: string | description:   
              - name: time | type: Time | description: Metadata for TIME.  
                 - name: defaultValue | type: string | description: Time value in format: hh:mm (e.g., "00:00", "09:30").  | validation: minLength 5, maxLength 5
                 - name: minTime | type: string | description: Minimum permitted time-of-day (inclusive). Time value in format: hh:mm (e.g., "00:00", "09:30").  | validation: minLength 5, maxLength 5
                 - name: maxTime | type: string | description: Maximum permitted time-of-day (inclusive). Time value in format: hh:mm (e.g., "23:59", "17:00").  | validation: minLength 5, maxLength 5
              - name: richContent | type: RichContent | description: Metadata for RICH_CONTENT.  
                 - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
              - name: mediaGallery | type: MediaGallery | description: Metadata for MEDIA_GALLERY.  
                 - name: defaultValue | type: array | description:   
              - name: address | type: Address | description: Metadata for ADDRESS.  
                 - name: defaultValue | type: object | description: Value assigned when a data item omits this field.  
              - name: email | type: Email | description: Metadata for EMAIL.  
                 - name: defaultValue | type: string | description: Value assigned when a data item omits this field.  | validation: format EMAIL
              - name: legacyColor | type: LegacyColor | description: Metadata for LEGACY_COLOR.  
                 - name: defaultValue | type: string | description:   
              - name: mediaImage | type: MediaImage | description: Metadata for MEDIA_IMAGE.  
                 - name: defaultValue | type: object | description: Image object used when the field is omitted from a new item.  
        - name: systemField | type: boolean | description: Whether the field is a system field.  | read-only: true 
        - name: capabilities | type: FieldCapabilities | description: Capabilities the field supports.  | read-only: true 
        - name: encrypted | type: boolean | description: Whether the field is encrypted.  
        - name: description | type: string | description: Field description.  | validation: maxLength 16000
        - name: readOnly | type: boolean | description: Whether the field is read-only. A read-only field can't be changed.  Default: `false`  
        - name: immutable | type: boolean | description: Whether the field is immutable. An immutable field can be set once, but then can't be updated.  Default: `false`  
        - name: required | type: boolean | description: Whether the field is required.  Default: `false`  
        - name: plugins | type: array<FieldPlugin> | description: Additional optional plugins for the field.  | validation: maxItems 100
           - ONE-OF: 
              - name: cmsOptions | type: CmsOptions | description: Options for the CMS plugin.  
                 - name: internal | type: boolean | description: Indicates an internal CMS field. The CMS does not display internal fields.  Default: `false`  
              - name: categoryFieldOptions | type: CategoryFieldOptions | description: Options for the CATEGORY_FIELD plugin.  
                 - name: isPrimary | type: boolean | description: Transient input-only flag. When set to `true` during create/update, designates this category field's group as the target for `_primaryCategory`. The flag is not persisted; `_primaryCategory` remains the source of truth.  Default: `false`  
           - name: type | type: Type | description: Field plugin type.  
                 - enum:
                 -     UNKNOWN: Unknown plugin type.
                 -     CMS: CMS-related field attributes.
                 -     CATEGORY_FIELD: Marks a multi-reference field as a category field linking to a Category Group.
                 -     CATEGORY_CONSUMER: Marks a back-reference field on Category Groups indicating a consumer relationship.
                 -     PRIMARY_CATEGORY_FIELD: Marks the auto-managed primary category single-reference field on a consumer collection.
        - name: condition | type: FieldCondition | description: Conditions that control whether this field is included when retrieving data items.  | read-only: true 
           - name: groupName | type: string | description: If `groupName` is set, this field will not be present in query results. To retrieve this field, pass `groupName` value to `includeFieldGroups` parameter in query operations.  | validation: maxLength 100
           - name: permission | type: Permission | description: If present, the field may be omitted from the results, if the requester lacks sufficient permissions to access data stored in the field.  
                 - enum:
                 -     ANYONE: Any role can request the field.
                 -     RESTRICTED: Special permission required to request the field.
     - name: permissions | type: Permissions | description: [Permissions](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/introduction.md#permissions) required to access and modify collection items, defined by the lowest role needed to perform each action.  
        - name: insert | type: Role | description: Role required to insert items into the collection.  Default: `CMS_EDITOR`  
             - enum:
             -     ADMIN: Site administrator.
             -     SITE_MEMBER_AUTHOR: Signed-in user who added content to this collection.
             -     SITE_MEMBER: Any signed-in user.
             -     ANYONE: Any site visitor.
        - name: update | type: Role | description: Role required to update collection items.  Default: `CMS_EDITOR`  
        - name: remove | type: Role | description: Role required to remove items from the collection.  Default: `CMS_EDITOR`  
        - name: read | type: Role | description: Role required to read collection items.  Default: `SITE_MEMBER_AUTHOR`  
     - name: revision | type: string | description: Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must specify the latest revision number.  | read-only: true | validation: format int64
     - name: plugins | type: array<Plugin> | description: Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality.  | validation: maxItems 100
        - ONE-OF: 
           - name: publishOptions | type: PublishPluginOptions | description: Options for the Publish plugin. This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object.md) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.  
              - name: defaultStatus | type: Status | description: Publication status assigned to items that don't specify one.  Default: `PUBLISHED`.  
                     - enum:
                     -     PUBLISHED: Items are published by default.
                     -     DRAFT: Items are drafts by default.
           - name: singleItemOptions | type: SingleItemPluginOptions | description: Options for the Single Item plugin.  
              - name: singleItemId | type: string | description: GUID of the single item in this collection. If you insert or update an item, its GUID value is always changed to this.  | validation: maxLength 16000
           - name: urlizedOptions | type: UrlizedPluginOptions | description: Options for the Urlized plugin.  
              - name: format | type: Format | description: Encoding method for generating a URL in ASCII characters.  Default: `ORIGINAL`.  
                     - enum:
                     -     ORIGINAL: Letters are converted to lower case and spaces are replaced with dashes before generating the encoded URL.
                     -     PLAIN: No changes are made before generating the encoded URL.
           - name: multilingualOptions | type: MultilingualOptions | description: Options for the Multilingual plugin.  
              - name: translatableFieldKeys | type: array<string> | description: IDs of fields to allow translation.  | validation: maxItems 1000, maxLength 1000
           - name: editablePageLinkOptions | type: PageLinkPluginOptions | description: Options for the PageLink plugin.  
              - name: isPersisted | type: boolean | description: Whether page link values are stored with the items.  Default: `false`.  
              - name: isMutable | type: boolean | description: Whether page link values can be updated.  Default: `false`.  
           - name: cmsOptions | type: CmsOptions | description: Options for the CMS plugin.  
              - name: siteSort | type: SiteSort | description: CMS sort, applied when a collection is displayed on a site.  
                 - name: sort | type: array<Sort> | description: Field and order for the site sort.  | validation: maxItems 100
           - name: catalogOptions | type: CatalogOptions | description: Options for the Catalog plugin.  
              - name: nameFieldKey | type: string | description: Key of the collection field that contains the catalog item's name. The referenced field must have type `TEXT`.  Required when configuring the Catalog plugin.  | validation: maxLength 1000
              - name: priceFieldKey | type: string | description: Key of the collection field that contains the catalog item's price. The referenced field must have type `NUMBER`.  Required when configuring the Catalog plugin.  | validation: maxLength 1000
              - name: urlFieldKey | type: string | description: Key of the collection field that contains the catalog item's URL. The referenced field must have type `URL`.  | validation: maxLength 1000
              - name: descriptionFieldKey | type: string | description: Key of the collection field that contains the catalog item's description. The referenced field must have type `TEXT`.  | validation: maxLength 1000
              - name: imageFieldKey | type: string | description: Key of the collection field that contains the catalog item's image. The referenced field must have type `IMAGE` or `MEDIA_IMAGE`.  | validation: maxLength 1000
              - name: quantityFieldKey | type: string | description: Key of the collection field that contains the catalog item's quantity. The referenced field must have type `NUMBER`.  | validation: maxLength 1000
              - name: digitalFileFieldKey | type: string | description: Key of the collection field that contains the catalog item's digital file. The referenced field must have type `SECURED_MEDIA`.  | validation: maxLength 1000
              - name: weightFieldKey | type: string | description: Key of the collection field that contains the catalog item's weight. The referenced field must have type `NUMBER`.  | validation: maxLength 1000
              - name: skuFieldKey | type: string | description: Key of the collection field that contains the catalog item's stock keeping unit (SKU). The referenced field must have type `TEXT`.  | validation: maxLength 1000
              - name: shippableFieldKey | type: string | description: Key of the collection field that indicates whether the catalog item requires shipping. The referenced field must have type `BOOLEAN`.  | validation: maxLength 1000
           - name: draftItemsOptions | type: DraftItemsPluginOptions | description: Options for the Draft Items plugin.  
              - name: draftsCollectionId | type: string | description: GUID of the drafts collection (e.g. "Posts__drafts"). Returned on published collections. Also returned on other views when both collection GUIDs are enabled.  | read-only: true | validation: maxLength 1000
              - name: publishedCollectionId | type: string | description: GUID of the published items collection (e.g. "Posts"). Returned on drafts and combined views. Also returned on published collections when both collection GUIDs are enabled.  | read-only: true | validation: maxLength 256
              - name: draftPermissions | type: DraftPermissions | description: Access levels required to view and manage drafts and change publication status.  
                 - name: manageDrafts | type: AccessLevel | description: Access level required to view/edit/remove items from the drafts collection. Can be set to one of CMS_EDITOR, PRIVILEGED Default: `CMS_EDITOR`  
                         - enum:
                         -     ANYONE: Any subject, including visitors.
                         -     SITE_MEMBER: Any signed-in user (both site members and collaborators).
                         -     SITE_MEMBER_AUTHOR: Any signed-in user, but site members only have access to own items.
                         -     CMS_EDITOR: Site collaborator that has a role with CMS Access permission.
                         -     PRIVILEGED: CMS administrators and users or roles granted with special access.
                 - name: managePublishStatus | type: AccessLevel | description: Access level required to publish draft items and unpublish published items. Can be set to one of CMS_EDITOR, PRIVILEGED Default: `CMS_EDITOR`  
                 - name: viewDrafts | type: AccessLevel | description: Access level required to view draft items. Managing drafts also grants viewing. If omitted, inherits manage_drafts for compatibility.  
              - name: allowedPermissions | type: AllowedDraftPermissions | description: Actual draft management operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`.  | read-only: true 
                 - name: manageDrafts | type: boolean | description: If manage_drafts is permitted for the caller.  
                 - name: managePublishStatus | type: boolean | description: If manage_publish_status is permitted for the caller.  
                 - name: viewDrafts | type: boolean | description: If the caller can view draft items.  
              - name: allowWritesToPublishedCollection | type: boolean | description: Whether writes to the published collection are allowed while the Draft Items plugin is enabled. Defaults to `false` for newly created collections and newly added plugins. Existing schemas that predate this field return `true` for backwards compatibility.  
              - name: draftsAndPublishedCollectionId | type: string | description: GUID of the combined drafts and published items collection (e.g. "Posts__drafts_and_published"), included on every collection view.  | read-only: true | validation: maxLength 1000
        - name: type | type: Type | description: Plugin type.  
             - enum:
             -     PUBLISH: Allows items to be marked as either draft or published. For each item you can set a publishing time when the item will become visible to site visitors.
             -     SINGLE_ITEM: Ensures the collection can have one item at most. Can only be applied to a new collection.
             -     URLIZED: Generates item URLs for collections used by dynamic pages.
             -     GRIDAPPLESS: Deprecated. Will be removed in the future.
             -     MULTILINGUAL: Indicates that the collection is translatable. This allows you to manage translation for selected fields using [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).
             -     SHARED: Indicates that collection is shared with current site.
             -     EDITABLE_PAGE_LINK: Indicates that page link fields are persisted and can be updated.
             -     CMS: CMS-specific collection properties.
             -     CATALOG: Indicates that the collection is used as a [Wix Catalog](https://dev.wix.com/docs/rest/business-solutions/e-commerce/catalogs/catalog-service-plugin/introduction.md) app. This plugin is used to manage product data and is required for collections that are part of a catalog.
             -     CATEGORIES: Marks the collection as a Category Group for categorization features.
             -     DRAFT_ITEMS: Enables the draft items collection: safe draft editing with explicit publish step.
     - name: pagingModes | type: array<PagingMode> | description: Paging modes the collection supports. In native collections, offset-based paging is supported by default.  | read-only: true | validation: maxItems 2
         - enum:
         -     OFFSET: Offset-based paging.
         -     CURSOR: Cursor-based paging.
     - name: _createdDate | type: Date | description: Date the collection was created.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date the collection was last updated.  | read-only: true 
     - name: allowedDataPermissions | type: AllowedDataPermissions | description: Actual data operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`  | read-only: true 
        - name: itemRead | type: boolean | description: If data items read permitted  
        - name: itemInsert | type: boolean | description: If for data items insert permitted  
        - name: itemUpdate | type: boolean | description: If data items update permitted  
        - name: itemRemove | type: boolean | description: If data items removal permitted  
     - name: deprecation | type: Deprecation | description: Deprecation metadata for this collection. App collections set this metadata to direct users to a replacement collection.  | read-only: true 
        - name: deprecated | type: boolean | description: Whether this collection is deprecated.  
        - name: deprecationMessage | type: string | description: Message shown to users of a deprecated collection. Use this to identify the replacement collection.  | validation: maxLength 4000


```

### Examples

### patchDataCollection
```javascript
import { collections } from '@wix/data';

async function patchDataCollection(_id,dataCollection) {
  const response = await collections.patchDataCollection(_id,dataCollection);
};
```

### patchDataCollection (with elevated permissions)
```javascript
import { collections } from '@wix/data';
import { auth } from '@wix/essentials';

async function myPatchDataCollectionMethod(_id,dataCollection) {
  const elevatedPatchDataCollection = auth.elevate(collections.patchDataCollection);
  const response = await elevatedPatchDataCollection(_id,dataCollection);
}
```

### patchDataCollection (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { collections } from '@wix/data';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { collections },
  // Include the auth strategy and host as relevant
});


async function patchDataCollection(_id,dataCollection) {
  const response = await myWixClient.collections.patchDataCollection(_id,dataCollection);
};
```

---