Skip to main content
Call off shares of a document

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
shareIds
string[]
required

The shares to call off. Every one of them has to exist, or nothing is done.

Required array length: 1 - 1000 elements
Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
isPublicComment
boolean
default:false

Whether the recipients of the document may read that reason where it is recorded, rather than only the workspace.

Example:

false

message
string

Why the shares are being called off. It is recorded on the document and carried in the notification the recipients receive. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.

Maximum string length: 2000
Example:

"Document has been revised. A new version will be shared shortly."

Response

Returns the outcome for every share that was called off.

error
boolean

Whether this share could not be called off. The request answers success whatever the individual outcomes, so read it share by share rather than from the status code.

Example:

false

id
string

Identifier of the share this outcome belongs to.

Example:

"sd0oAvfpB4k0yDf787x4"