Add a project repository
Attach a new repository to a project.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Organization name
^[a-z0-9][a-z0-9-]*[a-z0-9]$2 <= length <= 64Project name
^[a-z0-9][a-z0-9-]*[a-z0-9]$2 <= length <= 64Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Default branch (defaults to main when omitted)
length <= 255Include in the default repo set
Short repository name
^[^\x00-\x08\x0a-\x1f\x7f-\x9f--]*$1 <= length <= 128Repository clone URL: https://host[:port]/path only. The scheme is lower case. ssh://, the scp form (git@host:path) and other schemes are refused. The port, when set, is 1 to 65535. Must not carry credentials (no userinfo, no query); a token belongs in a git credential. Must not have a fragment. Printable ASCII only, with no space: percent-encode other characters and write a non-Latin host in punycode
1 <= length <= 1024Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/orgs/string/projects/string/repos" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "url": "string" }'{ "created_at": "string", "default_branch": "string", "id": "string", "is_default": true, "name": "string", "project_id": "string", "updated_at": "string", "url": "string"}{ "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"}