PUT api/2.0/group/{groupid}/members
Manages the group members keeping the current members and adding new ones specified in the request instead.
Name |
Description |
Type |
Example |
groupid
sent in url
|
Group ID
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
members
sent in body
|
List of new members
|
Collection of guids
collection
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
PUT api/2.0/group/9924256A-739C-462b-AF15-E652A3B1B6EB/members
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"members": [
"00000000-0000-0000-0000-000000000000"
]
}
application/json
{
"status": 0,
"response": {
"id": "f1d85f87-f28d-48a5-aff5-3f43b8535cd0",
"name": "Sample group",
"category": "bf52d4bb-6836-4555-a74c-6a02c4367178",
"parent": "c5ceaeb0-cae1-412e-b183-f1889b1c51a3",
"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>f1d85f87-f28d-48a5-aff5-3f43b8535cd0</id>
<name>Sample group</name>
<category>bf52d4bb-6836-4555-a74c-6a02c4367178</category>
<parent>c5ceaeb0-cae1-412e-b183-f1889b1c51a3</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>