PUT api/2.0/group/{groupid}/members/{newgroupid}
Move all the users from the selected group to another one specified
Name |
Description |
Type |
Example |
groupid
sent in url
|
ID of group to move from
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
newgroupid
sent in url
|
ID of group to move to
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
PUT api/2.0/group/9924256A-739C-462b-AF15-E652A3B1B6EB/members/9924256A-739C-462b-AF15-E652A3B1B6EB
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Group info which users were moved
application/json
{
"status": 0,
"response": {
"id": "479eba32-72c6-401d-82d7-fe0c2074c3a4",
"name": "Sample group",
"category": "66dc959b-8780-4b43-8f8c-6c0446819bef",
"parent": "336d4fa3-edcf-49cf-90a5-dbe7c797f3ad",
"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>479eba32-72c6-401d-82d7-fe0c2074c3a4</id>
<name>Sample group</name>
<category>66dc959b-8780-4b43-8f8c-6c0446819bef</category>
<parent>336d4fa3-edcf-49cf-90a5-dbe7c797f3ad</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>