Documents Plugin

Share a PRIVATE document with an employee or a team.

POST
http://localhost:3000/api/plugins/docs/documents/{id}/shares

Body

application/json
employeeIdstring
teamIdstring
accessstringVIEWCOMMENTEDITrequired

Parameters

idstringrequiredpath

Response

201CreatedDocumentShare

Share created successfully.

Response fields application/json
deletedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
createdAtstring<date-time>

The creation timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
updatedAtstring<date-time>

The last update timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
idstring
isActivebooleantrue
isArchivedbooleanfalse
archivedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
tenantIdstring
organizationIdstring
accessstringVIEWCOMMENTEDITrequired
documentIdstringrequired
employeeIdstring
teamIdstring
400Bad Request

Both or neither of employeeId/teamId supplied.

409Conflict

Document is not PRIVATE, or the share already exists.

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey