PUT api/2.0/group/{groupid}/manager
Sets a user with the ID specified in the request as a manager.
Name |
Description |
Type |
Example |
groupid
sent in url
|
Group ID
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
userid
sent in body
|
User ID
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
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"
}
application/json
{
"status": 0,
"response": {
"id": "8be8c87a-9d08-4769-b279-594fd7e06630",
"name": "Sample group",
"category": "150da44d-3f98-4ccd-a433-0ef5978d9de2",
"parent": "daa48f72-9b57-4931-8e05-db986d59d846",
"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>8be8c87a-9d08-4769-b279-594fd7e06630</id>
<name>Sample group</name>
<category>150da44d-3f98-4ccd-a433-0ef5978d9de2</category>
<parent>daa48f72-9b57-4931-8e05-db986d59d846</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>