Change Password
This endpoint allows the currently authenticated user to change their password.
Authorized Roles : DSM_ADMIN or DSM_USER
Action to change password. The only allowed value is 'change'.
Bearer token for authentication (e.g., "Bearer <token>" obtained from /provider/session)
Request body content type (application/json or application/vnd.vmware.dms-v1+json)
Must be application/vnd.vmware.dms-v1+json
Request body containing user details for password change.
{
"currentPassword": "string",
"newPassword": "string"
}
Current password of the user
New password for the user. Password Rule - Minimum 8 and Maximum 20 characters, at least one uppercase letter, one lowercase letter, one number and one special character (?!@#$%^&*)
Password changed successfully. No content returned.
Bad request. The provided input data is invalid.
{
"message": "string",
"errorCodes": {
"type": "string"
}
}
message
errorCodes
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"currentPassword:"string","newPassword:"string"}' https://{api_host}/provider/current-user/password?action=change