APPANAH Posted September 16 Share Posted September 16 Hello, I'm looking for command line examples for adding password via API Link to comment Share on other sites More sharing options...
MrE Posted September 17 Share Posted September 17 Pretty good example of this already in the documentation. https://pwstate.swbc.local/help/manuals/winapi/adding-a-new-password.html Using PowerShell: $jsonData = ' { "PasswordListID":"27", "Title":"North American Core Router 1", "UserName":"narouter1", "password":"StenS-Lun#3$2^yc" } ' $result = Invoke-Restmethod -Method Post -Uri 'https://passwordstate/winapi/passwords' -ContentType "application/json" -Body $jsonData -UseDefaultCredentials What have you already tried? What language are you looking to use? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now