跳到主要内容

ONLYOFFICE DocSpace Group API

The browsable version of this reference, with a request builder and code samples, is published at https://api.onlyoffice.com/docspace/api-backend/usage-api/.

All URIs are relative to https://yourportal.onlyoffice.com, where the host is the address of your DocSpace instance.

Group​

MethodHTTP requestDescription
addGroupPOST /api/2.0/groupAdd a new group
addMembersToPUT /api/2.0/group/{id}/membersAdd group members
deleteGroupDELETE /api/2.0/group/{id}Delete a group
getGroupGET /api/2.0/group/{id}Get a group
getGroupByUserIdGET /api/2.0/group/user/{userId}Get user groups
getGroupsGET /api/2.0/groupGet groups
moveMembersToPUT /api/2.0/group/{fromId}/members/{toId}Move group members
removeMembersFromDELETE /api/2.0/group/{id}/membersRemove group members
setGroupManagerPUT /api/2.0/group/{id}/managerSet a group manager
setMembersToPOST /api/2.0/group/{id}/membersReplace group members
updateGroupPUT /api/2.0/group/{id}Update a group
MethodHTTP requestDescription
getGroupsWithFilesSharedGET /api/2.0/group/file/{id}Search groups for a file
getGroupsWithFoldersSharedGET /api/2.0/group/folder/{id}Search groups for a folder
getGroupsWithRoomsSharedGET /api/2.0/group/room/{id}Search groups for a room

Authorization​

cookieAuth​

  • Type: API key
  • API key parameter name: asc_auth_key
  • Location:

bearerAuth​

  • Type: HTTP Bearer Token authentication

asc_auth_key​

  • Type: API key
  • API key parameter name: asc_auth_key
  • Location:

Basic​

  • Type: HTTP basic authentication

Bearer​

  • Type: HTTP Bearer Token authentication (JWT)

ApiKeyBearer​

  • Type: API key
  • API key parameter name: ApiKeyBearer
  • Location: HTTP header

OAuth2​

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL:
  • Scopes:
    • read: Read access to protected resources
    • write: Write access to protected resources

OpenId​

x-signature​

  • Type: API key
  • API key parameter name: x-signature
  • Location: