> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Method name:

data.items.bulkPatch(dataCollectionId: string, itemIds: Array<string>)

# Method Link:

https://dev.wix.com/docs/sdk/data-items-sdk/data/items/bulk-patch.md

# Method Description:

undefined

# Method Permissions:



# Method Permissions Scopes IDs:

undefined



# Method Code Examples:

## Patch multiple items in a collection

```javascript
import { items } from "@wix/data";

async function bulkPatch() {
  const results = await items.bulkPatch("BlogPosts", ["fb071093-9a40-432d-ae1f-2e5966fecbfa", "9fe1a67f-fc60-4e99-8898-3f9e719ca62f"])
  .appendToArray("tags", "travel")
  .setField("published", true)
  .run()

  const updated = results.updated // 2
  const errors = results.errors; // []
}

```

## Conditionally patch multiple items in a collection.

```javascript
import { items } from "@wix/data";

async function bulkPatch() {
  const filter = items.filter().eq("published", false);
  const results = await items.bulkPatch("BlogPosts", ["fb071093-9a40-432d-ae1f-2e5966fecbfa", "9fe1a67f-fc60-4e99-8898-3f9e719ca62f"])
  .appendToArray("tags", "travel")
  .setField("published", true)
  .run({ condition: filter })

  const updated = results.updated // 2
  const errors = results.errors; // []
}

```

## default

```javascript
try {
      const result = await items.bulkPatch("collection-0.4366748027349079", ["6892593d-d57f-428d-bc53-3f0870a1beef"]);
      return result;
    } catch (error) {
      console.error(error);
      throw error;
   }
```