Providing a Reason Auditing Data ​
With each call to the API, it's also possibly to specify a plain text 'reason' as to why you are executing the call, and then this Reason will be added to any relevant auditing records added. In order to do this, you need to specify a 'Reason' header request parameter as per the PowerShell example below
Powershell
# Powershell Request (GET - Retrieving Data)
$PasswordstateUrl = 'https://passwordstate/userapi/passwordlists/<PasswordListID>'
Invoke-Restmethod -Method Get -Uri $PasswordstateUrl -Header @{ "UserID" = "<UserID>" ; "APIKey" = "<APIKey>" ; "Reason" = "Testing" }