PUT api/2.0/groups/{id} This function requires authentication

Description

Updates the existing group changing the group manager, name, and/or members.

Parameters
Name Description Type Example
id
sent in url
Group ID guid 9924256A-739C-462b-AF15-E652A3B1B6EB
MembersToAdd
sent in body
List of user IDs to add to the group Collection of guids
collection
9924256A-739C-462b-AF15-E652A3B1B6EB
MembersToRemove
sent in body
List of user IDs to remove from the group Collection of guids
collection
9924256A-739C-462b-AF15-E652A3B1B6EB
Example
PUT api/2.0/groups/%229924256A-739C-462b-AF15-E652A3B1B6EB%22
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

Updated group with the detailed information

Example Response
{
  "status": 0,
  "response": {
    "Name": "some text",
    "Parent": "9924256A-739C-462b-AF15-E652A3B1B6EB",
    "Category": "9924256A-739C-462b-AF15-E652A3B1B6EB",
    "Id": "9924256A-739C-462b-AF15-E652A3B1B6EB",
    "Manager": {
      "Id": "9924256A-739C-462b-AF15-E652A3B1B6EB",
      "DisplayName": "some text",
      "Title": "some text",
      "AvatarSmall": "some text",
      "ProfileUrl": "some text",
      "HasAvatar": true
    }
  }
}