Skip to main content
POST
/
api
/
keychain
/
set-item
Store 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": "[email protected]"
  },
  "service": "github"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Body

application/json
service
string
required

Service identifier

Example:

"github"

item
KeychainItem · object
required

Keychain item to store

Response

Successfully stored keychain item