DevZero Logo
DevZero

Update a secret for a user

PUT
/users/secrets/{secret_id}
/users/secrets/{secret_id}

Request Body

application/jsonRequired

update user secret body

is_sensitiveboolean

namestring

Maximum length: 128

valuestring

Maximum length: 512

Header Parameters

Authorization
Required
string

Value: "Bearer <token>"; visit the "User Settings" page in the DevZero dashboard to generate a token

Path Parameters

secret_id
Required
string

ID of secret

Format: "uuid"
curl -X PUT "https://api.devzero.io/backend/v0/users/secrets/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '{
    "is_sensitive": true,
    "name": "string",
    "value": "string"
  }'

updated user secret

{
  "is_sensitive": true,
  "name": "string",
  "value": "string"
}