Moving a Password ​
PUT /userapi/passwords/move
An existing Password object can be moved to a Shared Password List by making a PUT request on the URL with appropriate fields forming the HTTP message body.
Note: You cannot use Private Password Lists with this method.
This method returns the appropriate HTTP response code plus an error message if applicable.
Powershell
# PowerShell Request
#JSON data for the object
$Body = @{
PasswordID = $PasswordID
DestinationPasswordListID = "20205"
}
$jsonData = $Body | ConvertTo-Json
$PasswordstateURL = 'https://passwordstate/userapi/passwords/move'
Invoke-Restmethod -Method Put -Uri $PasswordstateUrl -ContentType "application/json" -Body $jsonData -Header @{ "UserID" = "<UserID>" ; "APIKey" = "<APIKey>" }Json
# Response
HTTP/1.1 200 No ContentBelow is a description of each of the parameters for this API Method:
| Heading | Data Type | Description |
|---|---|---|
| PasswordID | Integer | The PasswordID value of the source password record to copy/link in Passwordstate. |
| DestinationPasswordListID | Integer | The PasswordListID value of the destination password list. |