---
title: "Updates the access of a team to the document space with the specified id."
method: PUT
path: "/documentspaces/{documentSpaceId}/teams/{documentSpaceToTeamId}"
tags: ["documentSpaces"]
---

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

`PUT /documentspaces/{documentSpaceId}/teams/{documentSpaceToTeamId}`

Updates the specified document space to team connection of a document space.
            Updating a document space team will affect their access to the document space and documents within that space.

<Check title="Required Permissions" icon="key">The user must be an admin.</Check>

## Path parameters

- `documentSpaceId` string, uuid, required
- `documentSpaceToTeamId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- EntityToTeamForm
  - `accessLevel` 'read' | 'manage', required — Determines the level of access granted to this contributor or team with respect to the referenced entity. Can be either set to `read` or `manage` where `read` allows viewing the entity and `manage` allows full control over it (read, write and permission changes).

## Response `200`

OK

- MinimalEntityToTeamModel
  - `id` string, uuid — The id of the entity to team.
  - `teamId` string, uuid — The id of the team this entity to team references.
  - `accessLevel` string, nullable — Determines the level of access granted to this entity to team 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)
