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

50 minutes ago, Jeroen said:

 

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.

 

Upgrade to V9 Build 9100 fixed my issue.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...