drop
Disconnects the users with the identifiers specified in the users parameter from the document editing service. These users will be able to view the document, but will not be allowed to make changes to it.
Starting from version 8.3, if the users parameter is not specified, the document editing will be prohibited for all users editing the document with the specified key.
Request example
{
"c": "drop",
"key": "Khirz6zTPdfd7",
"users": ["6d5a81d0"]
}
Request parameters
| Parameter | Type | Presence | Description |
|---|---|---|---|
| c | string | required | The command type. |
| key | string | required | The document identifier used to unambiguously identify the document file. |
| users | string[] | required | The list of the user identifiers. |
Response example
{
"error": 0,
"key": "Khirz6zTPdfd7"
}
Response parameters
| Parameter | Type | Presence | Description |
|---|---|---|---|
| error | integer | required | An error code. |
| key | string | required | The document identifier used to unambiguously identify the document file. |