Get Started
Portal api methods
Help

PUT api/2.0/group/{groupid}/manager This function requires authentication

Description

Sets the user with the ID sent as a manager to the selected group

Parameters
Name Description Type Example
groupid
sent in url
Group ID guid 9924256A-739C-462b-AF15-E652A3B1B6EB
userid
sent in body
User ID to become manager guid 9924256A-739C-462b-AF15-E652A3B1B6EB
Example
PUT api/2.0/group/9924256A-739C-462b-AF15-E652A3B1B6EB/manager
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "userid": "9924256A-739C-462b-AF15-E652A3B1B6EB"
}
Returns

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": "2cc427c8-2576-4649-895c-248a88c2c721",
    "name": "Sample group",
    "category": "51dcb252-f4e8-41af-8a02-d5278ae6bdfa",
    "parent": "695444b7-d2fc-4d04-9afc-73b09dd12154",
    "description": null,
    "manager": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "members": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      }
    ]
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>2cc427c8-2576-4649-895c-248a88c2c721</id>
    <name>Sample group</name>
    <category>51dcb252-f4e8-41af-8a02-d5278ae6bdfa</category>
    <parent>695444b7-d2fc-4d04-9afc-73b09dd12154</parent>
    <description />
    <manager>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </manager>
    <members>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </members>
  </response>
</result>