ves-io-schema-user-API-Replace
On This Page:
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-build318584715_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: Wed, 31 Mar 2021 08:30:18 GMT
Vary: Accept-Encoding
{
}