Skip to main content

file_unshared event

A file was unshared

Facts

Required Scopes
Compatible APIs

Usage info

This example includes both the event wrapper and the event structure for the file_unshared event.

{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "file_unshared",
"file_id": "F2147483862",
"file": {
"id": "F2147483862"
}
},
"type": "event_callback",
"authed_users": [
"U123ABC456",
"U222222222"
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}

The file_unshared event is sent when a file is unshared. It is sent to all connected clients for all users that had permission to see the file. The file property includes the file ID, as well as a top-level file_id. To obtain additional information about the unshared file, use the files.info API method.

This event is not raised if the reason for a file's removal is due to a workspace's file retention policy, as opposed to a user unsharing the file.