---
title: "Create/Update Document Team Collaborator"
method: PUT
path: "/v2/documents/{id}/shares/teams/{teamId}"
tags: ["Documents Collaboration"]
---

# Create/Update Document Team Collaborator

`PUT /v2/documents/{id}/shares/teams/{teamId}`

## Request

- Base URL: `https://api.lucid.co`
- URL: `https://api.lucid.co/v2/documents/{id}/shares/teams/{teamId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://lucid.app/oauth2/authorize`
    - Token URL: `https://api.lucid.co/oauth2/token` scopes: `lucidchart.document.app.folder`, `lucidchart.document.app.picker.share.collaborator`, `lucidchart.document.content.share.collaborator`, `lucidscale.document.app.folder`, `lucidscale.document.app.picker.share.collaborator`, `lucidscale.document.content.share.collaborator`, `lucidspark.document.app.folder`, `lucidspark.document.app.picker.share.collaborator`, `lucidspark.document.content.share.collaborator`
- TypeScript: <https://skmtc.dev/lucid/apis/lucid-rest-api/docs/v2/documents/:id/shares/teams/:teamId/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the details of the given team's collaboration on the given document, or adds the team as a collaborator on the document if it isn't already a collaborator.

## Path parameters

- `id` string, uuid, required
- `teamId` string, required

## Request body

- object
  - `role` 'editandshare' | 'edit' | 'comment' | 'view': The Collaborator Role to assign to the user for this document.

## Response `200`

OK when updating an existing Document Team Collaborator. Contains the updated Document Team Collaborator Resource.

- DocumentTeamCollaboratorV2: A Team collaborator, using the prefixed Team ID.
  - `documentId` string, uuid, required: Document ID
  - `teamId` string, required: Team ID prefixed with `team_`.
  - `role` 'owner' | 'editandshare' | 'edit' | 'comment' | 'view', required: The Collaborator Role on the document or folder
  - `created` string, date-time, required: Date and time when the collaboration was created

## Other responses

- `201`: Created when creating a new Document Team Collaborator. Contains the new Document Team Collaborator Resource.
- `403`: Forbidden if the token does not have permission to the document, or if the document has been deleted or does not exist.

## Changes

- **2026-11-03** `9c2c917ec59c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lucid/apis/lucid-rest-api/changes/v2/documents/:id/shares/teams/:teamId/put.md)

---

[API](https://skmtc.dev/lucid/apis/lucid-rest-api.md) - [All operations](https://skmtc.dev/lucid/apis/lucid-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lucid/apis/lucid-rest-api/revisions/9c2c917ec59c?raw)
