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": "7982b05d-959a-43d2-b977-3c1f8f583193",
"name": "Sample group",
"category": "f875a052-128e-4c10-91bd-5eef149ddacc",
"parent": "22b56df6-0095-49e2-a7d3-e7f03c291687",
"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>7982b05d-959a-43d2-b977-3c1f8f583193</id>
<name>Sample group</name>
<category>f875a052-128e-4c10-91bd-5eef149ddacc</category>
<parent>22b56df6-0095-49e2-a7d3-e7f03c291687</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>