Skip to main content
Change who may read and edit documents and folders

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
documents
object[]
required

Documents and folders whose access is changed, each entry naming one of them.

Required array length: 1 - 100 elements
addRights
object

Users and groups to grant access to, leaving the existing entries in place. At least one of private, addRights, setRights and removeRights must be provided.

isPublicComment
boolean
default:false

Records the note in the document's history where everyone with access to the document can read it, rather than keeping it internal.

Example:

false

message
string

Note delivered to the users who are newly granted access, together with the notification telling them about the document. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.

Maximum string length: 2000
Example:

"Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>."

private
boolean

Confines the documents to the users and groups named on them. While they are not private, the rights a caller holds for their metadata definition reach them as well. A caller who belongs to an organization always makes them private, whatever is sent here. At least one of private, addRights, setRights and removeRights must be provided.

removeRights
object

Users and groups to take access away from, leaving the rest in place. At least one of private, addRights, setRights and removeRights must be provided.

setRights
object

Users and groups that should have access, replacing whoever is listed now. At least one of private, addRights, setRights and removeRights must be provided.

Response

Returns the entries that did not go through.

count
integer
required

Number of items the request processed, successful and failed alike.

Example:

22

errors
boolean
required

Whether any item failed. Check it before treating the call as a clean success - the request itself answers 200 even when individual items did not go through.

Example:

false

items
object[]

Per-item outcomes. Endpoints report the failed items here; some also list the successful ones, so read each item's own status rather than inferring it from being listed.