Git repositories
Replace a project repository
Full-replacement update for a project repository. Note: is_default is append-only — use DELETE to remove a repository from the default set.
Full-replacement update for a project repository. Note: is_default is append-only — use DELETE to remove a repository from the default set.
Authorization
apiKey AuthorizationBearer <token>
API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
org*string
Organization name
Match
^[a-z0-9][a-z0-9-]*[a-z0-9]$Length
2 <= length <= 64project*string
Project name
Match
^[a-z0-9][a-z0-9-]*[a-z0-9]$Length
2 <= length <= 64repoId*string
Repository ID
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
default_branch?string
Default branch (defaults to main when omitted)
Length
length <= 255is_default?boolean
Include in the default repo set
name*string
Short repository name
Length
1 <= length <= 128url*string
Repository URL
Length
1 <= length <= 1024Response Body
application/json
application/problem+json
curl -X PUT "https://api-dev.tektona.ai/v1/orgs/string/projects/string/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "url": "string" }'{ "$schema": "https://api-dev.tektona.ai/schemas/Response.json", "created_at": "string", "default_branch": "string", "id": "string", "is_default": true, "name": "string", "project_id": "string", "updated_at": "string", "url": "string"}{ "$schema": "https://api-dev.tektona.ai/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}