Git repositories

Add a project repository

Attach a new repository to a project.

POST
/v1/orgs/{org}/projects/{project}/repos

Attach a new repository to a project.

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

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 POST "https://api-dev.tektona.ai/v1/orgs/string/projects/string/repos" \  -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"}