Update Privileged Account Credential ​
PUT /winapi/privaccount
Updating an existing Privileged Account Credential entry can be achieved by making a PUT request on the URL, with appropriate fields forming the HTTP message body. The account executing this call must have the Privileged Account Credentials Security Administrator's role in Passwordstate.
Powershell
#JSON data for the object
$Body = @{
PrivilegedAccountID = "3"
Password = "NewPas$Fraze2134"
}
$jsonData = $Body | ConvertTo-Json
$PasswordstateURL = 'https://passwordstate/winapi'
$result = Invoke-Restmethod -Method Put -Uri $PasswordstateURL'/privaccount' -ContentType "application/json" -Body $jsonData -UseDefaultCredentials
Write-Output $result