Set file sharing
set_file_sharingChange who can open a Files document, folder, or artifact. Only its owner or a workspace admin can. Each access entry sets one audience: "team" (everyone in the project), "link" (anyone with the URL, signed in or not, which publishes the file), or a project member's email. A role of null removes that access given on this file; access inherited from a parent folder, such as a shared folder, stays and is listed under inherited. Audiences you do not list keep their access. All entries apply together or not at all. Returns who can open the file afterwards, including artifactUrl for an artifact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| access | Yes | Access to set. Audiences not listed keep their current access. Each audience or email appears once. | |
| fileId | Yes |