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": "b1b4e941-c078-433b-812f-7287a1f94c17",
    "name": "Sample group",
    "category": "811776a5-1098-4ca4-9338-e9b948777437",
    "parent": "769d0f22-4083-4afe-8eb3-6b76c3ab0c41",
    "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>b1b4e941-c078-433b-812f-7287a1f94c17</id>
    <name>Sample group</name>
    <category>811776a5-1098-4ca4-9338-e9b948777437</category>
    <parent>769d0f22-4083-4afe-8eb3-6b76c3ab0c41</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>