Update Local User Password
Update the password for local account only if the old password is correct, or if user configures the local account for the first time
Request
URI
PATCH
https://{api_host}/v1/users/local/admin
COPY
Request Body
LocalAccountPasswordInfo of type(s) application/json
Required
Show optional properties
{
"newPassword": "string"
}
{
"oldPassword": "string",
"newPassword": "string"
}
string
oldPassword
Optional
The old password of the local account
string
newPassword
Required
The new password of the local account
Responses
204
No content
Operation doesn't return any data structure
500
Internal server error
Returns ErrorResponse of type(s) application/json
"ErrorResponse Object"
string
errorCode
Optional
errorCode
array of string
arguments
Optional
arguments
object
context
Optional
context
string
message
Optional
message
string
remediationMessage
Optional
remediationMessage
array of object
cause
Optional
Describes a single error cause
string
referenceToken
Optional
referenceToken
Code Samples
COPY
curl -X PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"newPassword:"string"}'