---
title: "Update document access"
method: PATCH
path: "/v1beta/documents/{document_id}/share/{recipient_id}"
tags: ["Sharings"]
---

# Update document access

`PATCH /v1beta/documents/{document_id}/share/{recipient_id}`

Update a recipient's role.

## Path parameters

- `document_id` string, required — Document ID.
- `recipient_id` string, required — Recipient ID (TypeID: user_xxx or bot_xxx).

## Request body

- object — UpdateDocumentAccessRequest updates a single recipient's role.
  - `document_role` 'viewer' | 'commenter' | 'collaborator' | 'admin' | 'owner', required

## Response `200`

Success

- UpdateDocumentAccessResponse — UpdateDocumentAccessResponse contains the result of updating access.
  - `error` string — Error message if the update failed.
  - `success` boolean — Whether the update succeeded.

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication failed - missing or invalid API key
- `403` — Authorization failed - valid key but insufficient permissions
- `404` — Resource not found
- `429` — Too many requests
- `500` — Internal server error

---

[API](https://skmtc.net/factify-inc/apis/factify-api.md) · [All operations](https://skmtc.net/factify-inc/apis/factify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factify-inc/factify-api/revisions/8baabdfb82bf/schema)
