PUT api/2.0/group/{groupid}/members/{newgroupid}
Moves all the members from the selected group to another one specified in the request.
Name |
Description |
Type |
Example |
groupid
sent in url
|
Group ID to move from
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
newgroupid
sent in url
|
Group ID 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
application/json
{
"status": 0,
"response": {
"id": "6960d4c4-5024-4a1f-9fa4-03f4436954e0",
"name": "Sample group",
"category": "e07a75b4-f0a8-48fa-ad03-0347d6116ca7",
"parent": "5cdcce99-8f2c-4174-9068-154ed52357b7",
"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>6960d4c4-5024-4a1f-9fa4-03f4436954e0</id>
<name>Sample group</name>
<category>e07a75b4-f0a8-48fa-ad03-0347d6116ca7</category>
<parent>5cdcce99-8f2c-4174-9068-154ed52357b7</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>