ves-io-schema-user-API-Replace

Examples of replacing user

Usecase:

Replace user-1

Request using vesctl:

vesctl configuration replace user -i user.yaml

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

metadata:
  name: user-1
  namespace: documentation
spec: {}

vesctl yaml response: None

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:38 GMT
Vary: Accept-Encoding

{

}