Skip to main content
POST
/
secrets
/
{secret_id}
Update Secret By Id
curl --request POST \
  --url https://api.example.com/secrets/{secret_id} \
  --header 'Content-Type: application/json' \
  --cookie fastapiusersauth= \
  --data '
{
  "type": "custom",
  "name": "<string>",
  "description": "<string>",
  "keys": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "tags": {},
  "environment": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

fastapiusersauth
string
cookie
required

Path Parameters

secret_id
string
required

Query Parameters

workspace_id
string<uuid>
required

Body

application/json

Update a secret.

Secret types

  • custom: Arbitrary user-defined types
  • token: A token, e.g. API Key, JWT Token (TBC)
  • oauth2: OAuth2 Client Credentials (TBC)
type
enum<string> | null

The type of a secret.

Available options:
custom,
ssh-key,
mtls,
ca-cert
name
string | null
Required string length: 1 - 100
description
string | null
Maximum string length: 1000
keys
SecretKeyValue · object[] | null
Required array length: 1 - 100 elements
tags
Tags · object
environment
string | null
Required string length: 1 - 100

Response

Successful Response