Update Address Book Contact ​
PUT /api/addressbook
Updating an existing Address Book contact can be achieved by making a PUT request on the URL, with appropriate fields forming the HTTP message body. To update Address Book contacts, you must use the Self Destruct and Address Book API Key.
API Key can be specified in the Header, or the Body of the POST.
Powershell
#JSON data for the object
$Body = @{
AddressBookID = "33"
PassPhrase = "NewPas$Fraze2134"
}
$jsonData = $Body | ConvertTo-Json
$PasswordstateURL = 'https://passwordstate/api'
$result = Invoke-Restmethod -Method Put -Uri $PasswordstateURL'/addressbook' -ContentType "application/json" -Body $jsonData -Header @{ "APIKey" = "<apikey>" }
Write-Output $result