POST api/2.0/group/{groupid}/members
Manages the group members deleting the current members and setting 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
|
POST 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": "76771e8b-1636-404a-9514-769e4a11f5f8",
"name": "Sample group",
"category": "d5f85b71-b15a-4ebb-b7d5-ac8f03d1afa2",
"parent": "7b214486-c8cf-4bc4-a493-72dba2a3c1a1",
"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>76771e8b-1636-404a-9514-769e4a11f5f8</id>
<name>Sample group</name>
<category>d5f85b71-b15a-4ebb-b7d5-ac8f03d1afa2</category>
<parent>7b214486-c8cf-4bc4-a493-72dba2a3c1a1</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>