Update Remote Site Location ​
PUT /api/remotesitelocations
Updating an existing Remote Site Locations entry can be achieved by making a PUT request on the URL, with appropriate fields forming the HTTP message body. You must use the Remote Site Locations API Key.
API Key can be specified in the Header, or the Body of the PUT.
Powershell
#JSON data for the object
$Body = @{
SiteID = "1"
SiteLocation = "Contoso New York"
}
$jsonData = $Body | ConvertTo-Json
$PasswordstateURL = 'https://passwordstate/api'
$result = Invoke-Restmethod -Method Put -Uri $PasswordstateURL'/remotesitelocations -ContentType "application/json" -Body $jsonData -Header @{ "APIKey" = "<apikey>" }
Write-Output $result