Docs
Add File Share
POST /files/{fileId}/shares
POST
/files/{fileId}/sharesShares a file at View, Participate, Edit or Manage. In an event drive the target is a Collaborator, Area, EventRole (a role definition placed on the event), Event (everyone holding Event.View; targetId is the event id) or Crew member (an org crew id with a crew row on the event); in the organization drive it is Organization (everyone in the organization; targetId is the organization id), a Department, a Location or a Crew member of the organization. One share per target: a target that already shares the file answers 400, update that share with Drives_UpdateFileShare. Requires Manage on the file.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| fileId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| targetType | string | Optional | |
| targetId | uuid | Optional | |
| level | string | Optional |
Response
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| targetType | string| null | |
| targetId | uuid | |
| name | string| null | |
| memberCount | integer | |
| level | string| null | |
| createdAt | date-time | |
| sharedBy | string| null |