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

# PATCH /collections/{name}/document/{docID}

`PATCH /collections/{name}/document/{docID}`

Update a document by docID

## Path parameters

- `name` string, required
- `docID` string, required

## Response `200`

ok

## Other responses

- `400` — error
- `404` — error

---

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