keychain
Store Keychain Item
keychain
Store Keychain Item
Stores a new keychain item for a service.
POST
/
api
/
keychain
/
set-item
curl --request POST \
--url http://localhost:4242/{computer_name}/api/keychain/set-item \
--header 'Content-Type: application/json' \
--data '{
"item": {
"password": "secret123",
"url": "https://github.com",
"username": "user@example.com"
},
"service": "github"
}'
This response does not have an example.
Body
application/json
Service identifier
Example:
"github"
Response
204
Successfully stored keychain item
curl --request POST \
--url http://localhost:4242/{computer_name}/api/keychain/set-item \
--header 'Content-Type: application/json' \
--data '{
"item": {
"password": "secret123",
"url": "https://github.com",
"username": "user@example.com"
},
"service": "github"
}'
This response does not have an example.