---
title: "PATCH /collections/{name}"
method: PATCH
path: "/collections/{name}"
tags: ["collection"]
---

# PATCH /collections/{name}

`PATCH /collections/{name}`

Update document(s) in a collection

## Path parameters

- `name` string, required

## Request body

- UpdateCollection
  - `filter` unknown
  - `updater` string

## Response `200`

Update results

- UpdateResult
  - `Count` integer
  - `DocIDs` string[]

## Other responses

- `400` — error

## Changes

- **2026-03-02** `8c167ee47363` — 1 info
  - api operation id `collection_update_with_filter` removed and replaced with `update_collection_with_filter`
- **2025-06-02** `60812f5416c5` — 1 info
  - api operation id `update_collection_with_filter` removed and replaced with `collection_update_with_filter`

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/collections/:name/patch.md)

---

[API](https://skmtc.dev/sourcenetwork/apis/defradb-api.md) · [All operations](https://skmtc.dev/sourcenetwork/apis/defradb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcenetwork/defradb-api/revisions/bf2e90fa690e/schema)
