Skip to main content

Replace the teams a file is shared with

PUT 

/v1/files/:fileId/teams

Requires the Teams.ShareFiles scope and, as in the web portal, sharing rights on the file (file owner, a manager of a team the file is shared with, or an org admin). The list replaces the current teams: teams not in the list are removed and new teams are added. Send "teamIds": [] to stop sharing the file with any team. Every team must be an active team of the caller's organization (see GET /v1/teams).

Request​

Responses​

File teams updated