Docs

Add File Share

POST /files/{fileId}/shares

POST/files/{fileId}/shares

Shares 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

FieldTypeRequiredDescription
fileIduuidRequired

Request Body

FieldTypeRequiredDescription
targetTypestringOptional
targetIduuidOptional
levelstringOptional

Response

FieldTypeDescription
iduuid
targetTypestring| null
targetIduuid
namestring| null
memberCountinteger
levelstring| null
createdAtdate-time
sharedBystring| null