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

# Resource: Items

# Type: WixDataPatch

# Action: appendToArray

# Link: https://dev.wix.com/docs/sdk/data-items-sdk/data/items/wix-data-patch/append-to-array.md

## Description: Refines a patch operation to append the specified value to the specified array or multi-reference field.

## Schema:

```json
 Method: appendToArray(field, value)
 Description: Refines a patch operation to append the specified value to the specified array or multi-reference field.
 Method parameters:
   param name:  field | type: string | description:  Array or multi-reference field to append the specified value to. Nested fields can be specified using dot notation. For example: `address.street`. 
   param name:  value | type: any | description:  Value to append to the specified array or multi-reference field. 
 Return type: REFERENCE<WixDataPatch>
     Method: appendToArray(field, value)
     Description: Refines a patch operation to append the specified value to the specified array or multi-reference field.
     Method parameters:
       param name:  field | type: string | description:  Array or multi-reference field to append the specified value to. Nested fields can be specified using dot notation. For example: `address.street`. 
       param name:  value | type: any | description:  Value to append to the specified array or multi-reference field. 
     Return type: REFERENCE<WixDataPatch>
     Method: incrementField(field, by)
     Description: Refines a patch operation to increment the specified field value by the specified parameter.
     Method parameters:
       param name:  field | type: string | description:  Field whose value is incremented. Nested fields can be specified using dot notation. For example: `address.street`. 
       param name:  by | type: number | description:  Value by which to increment the specified field. To decrement, specify a negative value. 
     Return type: REFERENCE<WixDataPatch>
     Method: removeField(field)
     Description: Refines a patch operation to clear the specified field.
     Method parameters:
       param name:  field | type: string | description:  Field whose value is cleared. Nested fields can be specified using dot notation. For example: `address.street`. 
     Return type: REFERENCE<WixDataPatch>
     Method: removeFromArray(field, value)
     Description: Refines a patch operation to remove the first instance of the specified value from the specified array or multi-reference field.
     Method parameters:
       param name:  field | type: string | description:  Array or multi-reference field to remove the specified value from. Nested fields can be specified using dot notation. For example: `address.street`. 
       param name:  value | type: any | description:  Value whose first instance is removed from the specified array or multi-reference field. 
     Return type: REFERENCE<WixDataPatch>
     Method: run(options)
     Description: Runs the patch operation and returns a Promise that resolves to the patched item and operation metadata.
     Method parameters:
       param name:  options | type: WixDataPatchOptions | description:  none 
           - name: condition  | type: WixDataFilterInput | description:  If provided, item will be patched only if condition is met. 
           - name: showDrafts  | type: boolean | description:  When `true`, operations include draft items. Read operations include draft items in their response, and write operations modify draft items.  Default: `false`. 
           - name: suppressHooks  | type: boolean | description:  Prevents hooks from running for the operation. Can only be used in the [backend code of a Wix site](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend.md).  Default: `false`. 
     Return type: PROMISE<WixDataItem>
           - name: _createdDate  | type: Date | description:  Date and time the item was added to the collection. 
           - name: _id  | type: string | description:  Data item GUID. 
           - name: _owner  | type: string | description:  GUID of the user who created the item. Can be modified with site owner permissions. 
           - name: _updatedDate  | type: Date | description:  Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value. 
     Method: setField(field, value)
     Description: Refines a patch operation to set the specified field to the specified value.
     Method parameters:
       param name:  field | type: string | description:  Field whose value is set. Nested fields can be specified using dot notation. For example: `address.street`. 
       param name:  value | type: any | description:  Value to set for the specified field. 
     Return type: REFERENCE<WixDataPatch>

```