> 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: WixDataBulkPatch

# Action: appendToArray

# Link: https://dev.wix.com/docs/sdk/data-items-sdk/data/items/wix-data-bulk-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<WixDataBulkPatch>
     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<WixDataBulkPatch>
     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<WixDataBulkPatch>
     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<WixDataBulkPatch>
     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<WixDataBulkPatch>
     Method: run(options)
     Description: Runs the bulk patch operation and returns a Promise that resolves to information about the results.
     Method parameters:
       param name:  options | type: WixDataBulkPatchOptions | description:  none 
           - name: condition  | type: WixDataFilterInput | description:  If provided, only items matching condition will be patched. 
           - 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<WixDataBulkResult>
           - name: errors  | type: Array<WixDataBulkError> | description:  List of errors. 
                 - name: code  | type: string | description:  Error code. 
                 - name: item  | type: undefined | description:  Failed item (or GUID in case of `bulkRemove()`). 
                 - name: message  | type: string | description:  Description of the error. 
                 - name: originalIndex  | type: number | description:  Index of the item within the request array. Allows for correlation between request and response items. 
           - name: inserted  | type: number | description:  Number of inserted items. 
           - name: insertedItemIds  | type: Array<string> | description:  List of GUIDs of inserted items. 
           - name: removed  | type: number | description:  Number of removed items. 
           - name: removedItemIds  | type: Array<string> | description:  List of GUIDs of removed items. 
           - name: skipped  | type: number | description:  Number of skipped items. 
           - name: updated  | type: number | description:  Number of updated items. 
           - name: updatedItemIds  | type: Array<string> | description:  List of GUIDs of updated items. 
     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<WixDataBulkPatch>

```