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": "b497c1dc-1128-4afa-928e-188fb561e79d",
    "name": "Sample group",
    "category": "2f811333-f3d1-49c2-96d6-bd6820a68cb1",
    "parent": "d7a51301-fa18-4cac-8fe6-a24fea122f76",
    "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>b497c1dc-1128-4afa-928e-188fb561e79d</id>
    <name>Sample group</name>
    <category>2f811333-f3d1-49c2-96d6-bd6820a68cb1</category>
    <parent>d7a51301-fa18-4cac-8fe6-a24fea122f76</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>