v54

latestSwagger 2.0AGPL-3.0raw.githubusercontent.com2026-08-03397565628.8 KB
Secrets

Update a user secret

patch/api/v2/users/{user}/secrets/{name}

Path parameters

userstring required

User ID, username, or me

namestring required

Secret name

Request body

descriptionstring
enabledboolean
env_namestring
file_pathstring
valuestring

Response

OK

created_atstring date-time
descriptionstring
enabledboolean

Enabled controls whether the secret is injected into workspaces. Disabled secrets remain visible and editable, but are not added to the agent manifest, so they are not exposed as environment variables or written to secret files.

env_namestring
file_pathstring
idstring uuid
namestring
updated_atstring date-time