Skip to main content
PATCH
/
api
/
v1
/
vault
/
entries
/
{agent}
/
{service}
Update vault credentials
curl --request PATCH \
  --url http://localhost:3000/api/v1/vault/entries/{agent}/{service} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "smtp",
  "label": "<string>",
  "credentials": {}
}
'
{
  "ok": true,
  "data": {
    "agent": "<string>",
    "service": "<string>",
    "type": "<string>",
    "keys": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.

Path Parameters

agent
string
required
service
string
required

Body

application/json
type
enum<string>

Update credential type

Available options:
smtp,
imap,
oauth,
api_key,
login,
custom
label
string

Update human-readable label

credentials
object

Credential fields to add or update (merged with existing)

Response

Vault entry updated successfully

ok
boolean
required
data
object
required