Return list of groups.
| name | type | description |
|---|---|---|
| direction | query | |
| filter | query | |
| nameLike | query | |
| orderBy | query | |
| page | query | |
| size | query |
| media type | data type | description |
|---|---|---|
| application/json | array of AppUserGroupListRecord (JSON) | list of groups |
GET /groups
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ { } ]
Create a new group.
| media type | data type | description |
|---|---|---|
| application/json | AppUserGroupRequest (JSON) | specify data for a new group |
| media type | data type | description |
|---|---|---|
| application/json | AppUserGroupDetails (JSON) | details of a newly created group |
POST /groups
Content-Type: application/json
Accept: application/json
{ }
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Remove group.
| name | type | description |
|---|---|---|
| guid | path | specify local unique identifier for group (use by vProtect) |
DELETE /groups/{guid}
Content-Type: */*
...
HTTP/1.1 204 No Content
Get a single group.
| name | type | description |
|---|---|---|
| guid | path | specify local unique identifier for group (use by vProtect) |
| media type | data type | description |
|---|---|---|
| application/json | AppUserGroupDetails (JSON) | a single group details |
GET /groups/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{ }
Change group details.
| name | type | description |
|---|---|---|
| guid | path |
| media type | data type | description |
|---|---|---|
| application/json | AppUserGroupRequest (JSON) | specify group details to update |
| media type | data type | description |
|---|---|---|
| application/json | AppUserGroupDetails (JSON) | updated details of group |
PUT /groups/{guid}
Content-Type: application/json
Accept: application/json
{ }
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
Add roles to the group
| name | type | description |
|---|---|---|
| guid | path | specify group guid |
| media type | data type |
|---|---|
| application/json | array of StringDTO (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | AppUserGroupDetails (JSON) | details of a newly created group |
POST /groups/{guid}/roles/add
Content-Type: application/json
Accept: application/json
[ { } ]
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Add users to the group
| name | type | description |
|---|---|---|
| guid | path | specify group guid |
| media type | data type |
|---|---|
| application/json | array of StringDTO (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | AppUserGroupDetails (JSON) | details of a newly created group |
POST /groups/{guid}/roles/remove
Content-Type: application/json
Accept: application/json
[ { } ]
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Add users to the group
| name | type | description |
|---|---|---|
| guid | path | specify group guid |
| media type | data type |
|---|---|
| application/json | array of StringDTO (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | AppUserGroupDetails (JSON) | details of a newly created group |
POST /groups/{guid}/users/add
Content-Type: application/json
Accept: application/json
[ { } ]
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Add users to the group
| name | type | description |
|---|---|---|
| guid | path | specify group guid |
| media type | data type |
|---|---|
| application/json | array of StringDTO (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | AppUserGroupDetails (JSON) | details of a newly created group |
POST /groups/{guid}/users/remove
Content-Type: application/json
Accept: application/json
[ { } ]
HTTP/1.1 201 Created
Content-Type: application/json
{ }