Skip to content
This repository was archived by the owner on Jul 27, 2019. It is now read-only.

routes post password personal external

Manoel Domingues Junior edited this page Dec 25, 2018 · 1 revision

Add a password to another user (POST /add/password/personal/external)

The password will be added, by default, in the "External" folder of the other user. The user who added the password will not have access to it.

Method: "/add/password/personal/external"

Required JSON

{"name":"test password","passwd":"passwd123","login":"admin","url":"example.com/admin","description":"blablabla","username":"user2"}
  • username : the user that the password will be added
  • name : password's name
  • passwd : the password
  • login : login used with the password
  • url : the url where the password will be used
  • description : description about the password

The fields name, passwd and username are required.

Usage example:

$curl -v -H 'Authorization: Bearer XXXXXXXX' -H "Content-Type: application/json" -d '{"username":"user2","name":"PasswordName","passwd":"passwd123","login":"admin", "url":"example.com/admin","description":"blablabla"}' [GSENHA_API]/add/password/personal/external

Response in case of success:

HTTP 200 and a JSON:

{"status":"success","message":"password successfully added to user2"}