Unable to send password to update in patch user management API

Hi Team,

I’m trying to update the user password from my application using management API-Patch Users.

API Docs says we have “password” parameter but in the response getting like it’s an additional parameter.

Url:
https://{domain}/api/v2/users/{userID}

The request body is like below:

{
"password ": “xxxxx”,

“connection”: “Username-Password-Authentication”
}

Response:
{

"statusCode": 400,

"error": "Bad Request",

"message": "Payload validation error: 'Additional properties not allowed: password  (consider storing them in app_metadata or user_metadata. See \"Users Metadata\" in https://auth0.com/docs/api/v2/changes for more details)'.",

"errorCode": "invalid_body"

}

I’ve gone through the several topics in the forum but I couldn’t find updating password request body anywhere.

Please instruct me on the same if I’m in wrong path:

Thanks in Advance

Hi @pratapk1102 ,

Thank you for posting this topic on Auth0 Community!

I tested this endpoint with Postman and could not repeat this issue.

I noticed that in your request body there is an extra space for the key password.

That could be the reason for the error. Could you please remove the space and give it a try?