ves-io-schema-user-CustomAPI-RemoveUserFromGroup

Examples of performing user CustomAPI RemoveUserFromGroup

Usecase:

request to remove user from the group

Request:

Request using vesctl:

vesctl request rpc user.CustomAPI.RemoveUserFromGroup -i request.yaml --uri /public/custom/namespaces/system/users/group_remove --http-method POST

where file request.yaml has following contents:

group: f3eb9a68-33f8-4f75-aa70-73df57738ae7
username: test@test.com

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"username":"test@test.com","group":"f3eb9a68-33f8-4f75-aa70-73df57738ae7"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/custom/namespaces/system/users/group_remove'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:51:23 GMT
Vary: Accept-Encoding

{

}