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.

PUT
/v1/orgs/{org}/projects/{project}/repos/{repoId}

Full-replacement update for a project repository. Note: is_default is append-only — use DELETE to remove a repository from the default set.

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]$
Length2 <= length <= 64
project*string

Project name

Match^[a-z0-9][a-z0-9-]*[a-z0-9]$
Length2 <= length <= 64
repoId*string

Repository ID

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

default_branch?string

Default branch (defaults to main when omitted)

Lengthlength <= 255
is_default?boolean

Include in the default repo set

name*string

Short repository name

Length1 <= length <= 128
url*string

Repository URL

Length1 <= length <= 1024

Response 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"}