Git repositories
Add a project repository
Attach a new repository to a project.
Attach a new repository to a project.
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 <= 64Request 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 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"}{ "$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"}