Jump to content

Change Password


iKenchu

Recommended Posts

iKenchu

Hi, i have a problem wen i use API for change account password:

http://SERVER/emby/Users/ID/Password?api_key=API

{
  "CurrentPw""",
  "NewPw""1234",
  "ResetPassword"false
}
 
i riceve this error:
 
Value cannot be null. (Parameter 'newPasswordHash')
 
How can i FIX IT?
Edited by iKenchu
Link to comment
Share on other sites

Hi, from the surface, your request looks OK to me. Can you use the chrome debugger to monitor the request sent by the emby web interface on the change password screen. How does it compare?

Link to comment
Share on other sites

  • 9 months later...
  • 3 months later...
lostinfever

Not work for me either , I could change password in the web or other app , but not work with api

Here is my json code

        $json_data = array(
            'Id' => $userId,
            'CurrentPw' => '',
            'NewPw' => $newPassword,
            'ResetPassword' => true,
            'newPasswordHash' => $newPasswordHash
        );

The curl request get http code 400 , Value cannot be null. (Parameter 'newPasswordHash')

I can`t find the Parameter 'newPasswordHash'  in http://swagger.emby.media/?staticview=true#/UserService/postUsersByIdPassword 

I have already tried to add 'newPasswordHash' => $newPasswordHash  in the json_data , but it couldn`t work 

Is there anything wrong with the api ?

Link to comment
Share on other sites

iKenchu

Greetings,
Have you found a solution? I'm forced to change CMS if this api doesn't work -.-

Link to comment
Share on other sites

iKenchu

If i use integrate swegger respose is 

204
Undocumented
Response headers

content-length: 0

Link to comment
Share on other sites

1 hour ago, iKenchu said:

How can I see that?

Use the console feature of whichever browser you are using.  For Chrome it is ctrl-shift-c.

Link to comment
Share on other sites

iKenchu
On 7/5/2023 at 11:32 PM, ebr said:

Use the console feature of whichever browser you are using.  For Chrome it is ctrl-shift-c.

Ok, what SESSION i can see?

Link to comment
Share on other sites

11 hours ago, iKenchu said:

Ok, what SESSION i can see?

Hi, what do you mean by session? Once you open up the debugger just watch the network tab and you’ll be able to see the requests.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...