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.

Request example

{
  "c": "drop",
  "key": "Khirz6zTPdfd7",
  "users": ["6d5a81d0"]
}

Parameters

ParameterTypePresenceDescription
cstringrequiredDefines the command type.
keystringrequiredDefines the document identifier used to unambiguously identify the document file.
usersarray of stringsrequiredDefines the list of the user identifiers.

Response example

{
  "error": 0,
  "key": "Khirz6zTPdfd7"
}

Parameters

ParameterTypePresenceDescription
errorintegerrequiredDefines an error code.
keystringrequiredDefines the document identifier used to unambiguously identify the document file.

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).