---
title: "Updates the access of a document contributor with the specified id to a document."
method: PUT
path: "/documents/{documentId}/contributors/{documentContributorId}"
tags: ["documents"]
---

# Updates the access of a document contributor with the specified id to a document.

`PUT /documents/{documentId}/contributors/{documentContributorId}`

Updating a document contributor will affect their access to the document.
            There will be a recalculation of permissions for related entities considering the updated document contributor.
            
            <Check title="Required Permissions" icon="key">The user must have at least `write` permissions for the specified document.</Check>

## Path parameters

- `documentId` string, uuid, required
- `documentContributorId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- ContributorForm
  - `accessLevel` 'read' | 'manage', required — Determines the level of access granted to this contributor with respect to the referenced entity. Can be either set to `read` or `manage`.

## Response `200`

OK

- MinimalContributorModel
  - `id` string, uuid — The id of the contributor.
  - `userId` string, uuid — The id of the user this contributor references.
  - `accessLevel` string, nullable — Determines the level of access granted to this contributor with respect to the specific entity. Can be either set to `read` or `manage`.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

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