Jump to content

Update password via WINAPI fails


Recommended Posts

Hi Support,

 

When I'm running the below command:

$jsonDataNot = '
{
    "PasswordID":"1234",
    "password":"ThisIsAPassword"
}
'

$jsonData = $jsonDataNot | ConvertTo-Json

$PasswordstateUrl = "https://passwordstate.XXXXXX.group/winapi/passwords"
$result = Invoke-Restmethod -Method Put -Uri $PasswordstateUrl -ContentType "application/json" -Body $jsonData -Credential $Credential

 

I'm getting the following error:

[{"errors":[{"message":"Not Found"},{"phrase":"No HTTP resource was found that matches the request URI 'https://passwordstate.XXXXXX.group/winapi/passwords'., No action was found on the controller 'Passwords' that matches the name 'updatepassword'."}]}]

 

Any suggestions?

 

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...
On 3/15/2021 at 8:37 AM, Emil Gullbrandsson said:

Hi Support,

 

When I'm running the below command:



$jsonDataNot = '
{
    "PasswordID":"1234",
    "password":"ThisIsAPassword"
}
'

$jsonData = $jsonDataNot | ConvertTo-Json

$PasswordstateUrl = "https://passwordstate.XXXXXX.group/winapi/passwords"
$result = Invoke-Restmethod -Method Put -Uri $PasswordstateUrl -ContentType "application/json" -Body $jsonData -Credential $Credential

 

I'm getting the following error:



[{"errors":[{"message":"Not Found"},{"phrase":"No HTTP resource was found that matches the request URI 'https://passwordstate.XXXXXX.group/winapi/passwords'., No action was found on the controller 'Passwords' that matches the name 'updatepassword'."}]}]

 

Any suggestions?

 

Thanks!

 

Exactly the same here, since the upgrade to V9:

No action was found on the controller 'Passwords' that matches the name 'addnewpassword'

 

Unfortunately, no solution here.

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...