Skip to content

Update User

Request

Security
OAuth2PasswordBearer
Path
usernamestring(Username)required
Bodyapplication/jsonrequired
passwordstring or null(Password)
Any of:
string
rolesArray of strings or null(Roles)
Any of:
Array of strings
PUT
/api/v1/users/{username}
curl -i -X PUT \
  'https://matric-docs.redocly.app/_mock/openapi/api/v1/users/{username}' \
  -H 'Content-Type: application/json' \
  -d '{
    "password": "string",
    "roles": [
      "string"
    ]
  }'

Responses

Successful Response

Bodyapplication/json
usernamestring or null(Username)
Any of:
string
rolesstring(Roles)required
scopesArray of strings(Scopes)
Default:[]
Response
{ "username": "string", "roles": "string", "scopes": [] }