DevZero Logo
DevZero

Update a secret for a team

PUT
/teams/{team_id}/secrets/{secret_id}
/teams/{team_id}/secrets/{secret_id}

Request Body

application/jsonRequired

update team 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

team_id
Required
string

ID of team

secret_id
Required
string

ID of secret

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

updated team secret

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