Docs
Get File Shares
GET /files/{fileId}/shares
GET
/files/{fileId}/sharesReturns a file's direct shares and the shares it inherits from the folders above it, each with the target's name, how many people it reaches and who shared it. Requires View on the file.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| fileId | uuid | Required |
Response
| Field | Type | Description |
|---|---|---|
| shares | GetFileSharesResponseShare[]| null | |
| inherited | GetFileSharesResponseInheritedShare[]| null |
GetFileSharesResponseShare
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| targetType | string| null | |
| targetId | uuid | |
| name | string| null | |
| memberCount | integer | |
| level | string| null | |
| createdAt | date-time | |
| sharedBy | string| null |
GetFileSharesResponseInheritedShare
| Field | Type | Description |
|---|---|---|
| fromFolderId | uuid | |
| fromFolderName | string| null | |
| id | uuid | |
| targetType | string| null | |
| targetId | uuid | |
| name | string| null | |
| memberCount | integer | |
| level | string| null | |
| createdAt | date-time | |
| sharedBy | string| null |