settings

Update a secret

[cloud-only] Updates an existing secret's name and/or value. Both fields are optional; only provided fields are updated.

patch/api/secrets/{id}

Path parameters

idstring uuid required

The secret ID.

Request body

namestring

New name for the secret

secret_valuestring

New secret value (API key, token, etc.)

Response

Secret updated

idstring uuid required

Unique identifier for the secret

namestring required

User-provided label for the secret

providerstring

Provider identifier (e.g., huggingface, civitai)

last_used_atstring date-time

When the secret was last used for decryption

created_atstring date-time required

When the secret was created

updated_atstring date-time required

When the secret was last updated

Changes