Skip to main content

Unshare folder

DELETE https://api.rollstack.com/public/v1/folders/{id}/shares/{userId}

Removes a member's direct share of a folder, and their access to its reports' files in Drive unless they still reach the folder through a parent folder, as the app does. Access through a parent folder stays: unshare that folder instead. Needs manage on the folder, or owning it, except to unshare it from yourself.

Requires the slide_decks:write scope.

Operation ID: unshareFolder.

Path parameters

  • id (string, required): The folder to act on, by its id from listFolders or createFolder.
  • userId (integer, required): The member to share the folder with, or to unshare it from: their id from listMembers, which only owners and admins can call, or their userId in access from getFolder. Only active members of the organization. Anyone the folder is shared with can unshare it from themselves.

Headers

  • Idempotency-Key (string): A unique value, such as a UUID, that makes retrying this call safe. A retry with the same key within 24 hours answers the first call's result instead of running it again. Use a new key for each new call. From 1 to 255 printable ASCII characters.

Response 204

Success, no content