# Unclear API endpoint

**URL:** <https://forums.suse.com/t/unclear-api-endpoint/18924>\
**Category:** SUSE Rancher Prime\
**Created:** [November 30, 2020, 11:32pm UTC](https://forums.suse.com/t/unclear-api-endpoint/18924 "2020-11-30T23:32:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hippiez](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@Hippiez](https://forums.suse.com/u/Hippiez)\
**Post date:** [November 30, 2020, 11:32pm UTC](https://forums.suse.com/t/unclear-api-endpoint/18924/1 "2020-11-30T23:32:20Z")

</div>

Good evening,

I’m currently working on a very basic demo with the Rancher API. The documentation for the specific endpoint to change a user password is a little bare. The example explorer does not show a field for the actual user you want to change the password of.

data = {  
“currentPassword”: “test1”,  
“newPassword”: “Test”  
}  
url = ‘[https://rancher.qstars.nl/v3/users?action=changepassword](https://rancher.qstars.nl/v3/users?action=changepassword)’

How do I specify the user?

Thanks!

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [December 1, 2020, 12:11am UTC](https://forums.suse.com/t/unclear-api-endpoint/18924/2 "2020-12-01T00:11:14Z")

</div>

The `changepassword` action is for the user who is logged in and making the request, and requires knowing their current password. This is the self-service “change my password” flow. It’s on the collection (instead of an individual `/v3/users/<id>`) because the person who’s logged in doesn’t necessarily have access to list users and find themselves in the collection.

If you are logged in as an admin, then individual `/v3/user` entries also have a `setpassword` action which will let you just set a new password for them (without knowing the old one). This is more like an help desk ticket “Steve forgot his password, can you help him” flow.
