Add route and API to set members of a group

This commit is contained in:
Girish Ramakrishnan
2016-09-29 14:44:12 -07:00
parent 79d2b0c11c
commit 8e712da2c8
5 changed files with 64 additions and 1 deletions

View File

@@ -860,6 +860,19 @@ Response (200):
}
```
### Set members
PUT `/api/v1/groups/:groupId` <scope>admin</scope>
Sets the members of an existing group with id `groupId`.
Request:
```
{
userIds: [ <string>, ... ] // list of users to be part of this group
}
```
### List groups
GET `/api/v1/groups` <scope>admin</scope>