Folder Sharings

Delete Folder Sharing

Changed on

Deletes a sharing on a folder.

Requires api token with one of the following permissions

Read, update & delete anything

Tokens with the "Act with a team member's permissions" permission (all:delegate_to_contact_permissions scope) can also be used. Requests made with such a token are authorized using the permissions of the contact assigned to the token.

An expiring access token created with the all:delegate_to_contact_permissions scope and an authorization granting the update permission on this folder can also be used.

delete/folders/{folderId}/sharings/{sharingId}

Request

  • Base URL
    https://api.wistia.com/modern
  • URL
    https://api.wistia.com/modern/folders/{folderId}/sharings/{sharingId}
  • Auth
    HTTP bearer

Path parameters

folderIdstring required

Hashed ID of the folder (e.g., "4d23503f70")

Hashed ID of the folder

sharingIdstring required

ID of the sharing to be deleted

Headers

X-Wistia-API-Versionstring required

Response

Sharing deleted successfully

idinteger required
is_adminboolean required
can_shareboolean required
can_downloadboolean required
can_uploadboolean required
cursorstring nullable

A cursor for stable pagination based on current sort_by order. You can pass this to cursor[before] or cursor[after] as a parameter to fetch the records before or after this record in the same sort order. This is only populated if records were fetched with cursor[enabled], or cursor[before] or cursor[after].

Example response

{
  "id": 14,
  "is_admin": true,
  "can_share": true,
  "can_download": true,
  "can_upload": true,
  "share": {
    "id": 3,
    "name": "Jim",
    "type": "Contact",
    "email": "jim@wistia.com"
  },
  "folder": {
    "id": 13,
    "name": "My Folder"
  }
}

Changes