ves-io-schema-user_group-API-Replace

Examples of replacing user_group

Usecase:

Replace user-group-1

Request using vesctl:

vesctl configuration replace user_group -i user_group.yaml

where file usergroup.yaml has following contents (usergroup.ReplaceRequest):

metadata:
  name: user-group-1
  namespace: documentation
spec:
  displayName: test

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"user-group-1","namespace":"documentation"},"spec":{"displayName":"test"}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/documentation/user_groups/user-group-1'

curl response:

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

{

}