SecretsProject Secrets

Update a project secret's value

PUT
/v1/orgs/{org}/projects/{project}/secrets/{secretId}
AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.

In: header

Path Parameters

org*string
project*string
secretId*string

Query Parameters

scope*string

Whether to update the shared project value or the one scoped to you

Value in

  • "project"
  • "personal"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

aws_access_key_id?string

Required when the secret is of type aws: both halves are rotated together

Match^AKIA[A-Z0-9]{16}$
type?string

Value in

  • "generic"
  • "git"
  • "aws"
  • "basic"
username?string

Required when the secret is of type basic: both halves are rotated together

Match^[^:\x00-\x1f\x7f-\x9f]+$
Lengthlength <= 256
value*string
Length1 <= length

Response Body

application/json

application/problem+json

curl -X PUT "https://example.com/v1/orgs/string/projects/string/secrets/string?scope=project" \  -H "Content-Type: application/json" \  -d '{    "value": "string"  }'
{  "secret": {    "aws_access_key_id": "string",    "created_at": "string",    "id": "string",    "key": "string",    "owner_user_id": "string",    "scope": "org",    "type": "generic",    "updated_at": "string",    "username": "string"  }}