Hello,
I am trying to copy and link Passwords in a password list to another using the api. I am using the code referenced in the documentation:
$jsonData = @"
{
"PasswordID":"$PasswordId",
"DestinationPasswordListID":"154",
"Link":"True"
}
"@
$result = Invoke-Restmethod -Method Post -Uri $PasswordCopyURL -ContentType "application/json" -Body $jsonData -Header @{ "APIKey" = $PasswordList_APIKey }
When I run this I get the following error:
[{"errors":[{"message":"No Authorization"},
{"phrase":"An error has occurred trying to validate the
API Key for PasswordID '6404'. Please check the PasswordID, destination PasswordListID and copy/move API Key values
have been specified, and are correct."}]}]
The API key that I am using is a PasswordList API Key, I've tried both the API key from the source password list, and the destination password list but both key produce the same error. I have validated that my passwordID and DestinationPasswordListID are both correct.