# Unable to send password to update in patch user management API

**URL:** <https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784>\
**Category:** Get Help\
**Tags:** user-management, management-api\
**Created:** [March 30, 2022, 8:21am UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784 "2022-03-30T08:21:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratapk1102](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pratapk1102/32/33650_2.png) [@pratapk1102](https://community.auth0.com/u/pratapk1102)\
**Post date:** [March 30, 2022, 8:21am UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784/1 "2022-03-30T08:21:14Z")

</div>

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.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/8/6891144389a39b59f29987338ea2473569174fe2.png)

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

The request body is like below:

```auto
{
"password ": “xxxxx”,

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

```

Response:  
{

```auto
"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

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 19, 2022, 7:19pm UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784/3 "2022-04-19T19:19:02Z")

</div>

Hi @pratapk1102 ,

Thank you for posting this topic on Auth0 Community!

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

 ![image](https://global.discourse-cdn.com/auth0/original/3X/f/e/feae42f0e4cd2f8bb981f66c61457f71c317874b.png)

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

 ![image](https://global.discourse-cdn.com/auth0/original/3X/8/6/86424a8b7345609463b131110b6e98c4c46de271.png)

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

---

<div class="post-metadata">

**Author:** ![pythonandfriday](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pythonandfriday/32/37822_2.png) [@pythonandfriday](https://community.auth0.com/u/pythonandfriday)\
**Post date:** [July 15, 2022, 2:35pm UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784/4 "2022-07-15T14:35:17Z")

</div>

Hi! @lihua.zhang

> [@pratapk1102](#):
>
> I’m trying to update the user password from my application using management API-Patch Users

By the way, I have a similar problem

 ![Screenshot 2022-07-15 at 17.29.44](https://global.discourse-cdn.com/auth0/original/3X/c/9/c9b1a2dd6d2a955aad06df2f1481657aa8264723.jpeg)

```auto
{"statusCode":400,"error":"Bad Request","message":"Payload validation error: 'Additional properties not allowed: “connection”,\"\"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"}

```

Could you please explain to me what it could be?

---

<div class="post-metadata">

**Author:** ![gparascandolo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gparascandolo/32/38788_2.png) [@gparascandolo](https://community.auth0.com/u/gparascandolo)\
**Post date:** [July 15, 2022, 2:58pm UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784/5 "2022-07-15T14:58:30Z")

</div>

You need to remove the double quotes from the `key` and `value` fields.  
i.e.  
key: `password`, not `"password"`  
value: `123123Text`, not `"123123Text"`

See the Postman example here: [Building requests | Postman Learning Center](https://learning.postman.com/docs/sending-requests/requests/#form-data)

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [July 15, 2022, 4:00pm UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784/6 "2022-07-15T16:00:38Z")

</div>

@gparascandolo, Thanks for helping! 👍

@pythonandfriday , please let us know if any other queries around this topic.

---

<div class="post-metadata">

**Author:** ![pythonandfriday](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pythonandfriday/32/37822_2.png) [@pythonandfriday](https://community.auth0.com/u/pythonandfriday)\
**Post date:** [July 15, 2022, 6:01pm UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784/7 "2022-07-15T18:01:08Z")

</div>

@gparascandolo @lihua.zhang  
Thank you all  
it worked for me using “raw JSON” in Postman

 ![Screenshot 2022-07-15 at 20.01.55](https://global.discourse-cdn.com/auth0/original/3X/7/6/76f7249fa584df0b2d3a15c3c2de13a2f37a1467.jpeg)

And I find that “email” and “password” (It was needed for me) cannot be both updated in the same call

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [July 15, 2022, 6:33pm UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784/8 "2022-07-15T18:33:57Z")

</div>

@pythonandfriday ,

That’s correct that we can not update email and password simultaneously as the operation is not supported.

---

<div class="post-metadata">

**Author:** ![pythonandfriday](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pythonandfriday/32/37822_2.png) [@pythonandfriday](https://community.auth0.com/u/pythonandfriday)\
**Post date:** [July 16, 2022, 4:22am UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784/9 "2022-07-16T04:22:32Z")

</div>

@lihua.zhang I got it, thank you!

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [July 18, 2022, 4:58pm UTC](https://community.auth0.com/t/unable-to-send-password-to-update-in-patch-user-management-api/80784/10 "2022-07-18T16:58:20Z")

</div>


