Jump to content

Add password via API


APPANAH

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...