Skip to main content
PUT
/
v1
/
secrets
Upsert or delete secrets
curl --request PUT \
  --url https://api.example.com/v1/secrets \
  --header 'Content-Type: application/json' \
  --data '
{
  "secrets": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ]
}
'
{
  "data": {
    "upserted_keys": [
      "<string>"
    ],
    "deleted_keys": [
      "<string>"
    ]
  }
}

Body

application/json

Request body for the PUT /secrets endpoint.

secrets
SecretKeyValue · object[]
required

Response

Successful Response

data
UpsertOrDeleteSecretsResult · object
required

Result payload listing which keys were upserted and which were deleted.