---
title: "Create/Update Folder Team Collaborator"
method: PUT
path: "/v2/folders/{id}/shares/teams/{teamId}"
tags: ["Folders Collaboration"]
---

# Create/Update Folder Team Collaborator

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

## Request

- Base URL: `https://api.lucid.co`
- URL: `https://api.lucid.co/v2/folders/{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: `folder`
- TypeScript: <https://skmtc.dev/lucid/apis/lucid-rest-api/docs/v2/folders/: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 folder, or adds the team as a collaborator on the folder if it is not already a collaborator.

## Path parameters

- `id` number, required
- `teamId` string, required

## Request body

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

## Response `200`

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

- FolderTeamCollaboratorV2: A Team collaborator, using the prefixed Team ID.
  - `folderId` integer, required: Folder 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 Folder Team Collaborator. Contains the new Folder Team Collaborator Resource.
- `400`: Bad Request when trying to add or update a collaborator to have the "owner" role.
- `403`: Forbidden when the token does not have permission for the folder, or if the folder 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/folders/: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)
