servers

Connect a repository

Create or update the GitHub repository connection. Idempotent — updates if a connection already exists.

put/servers/{qualifiedName}/repo

Path parameters

qualifiedNamestring required

The server's qualified name (e.g. 'namespace/server' or 'namespace' for namespace-only servers). Use %2F to encode the slash.

Request body

repoOwnerstring required
repoNamestring required
baseDirectorystring
branchstring nullable
autoDeployboolean

Example request

{
  "baseDirectory": ".",
  "branch": "main",
  "autoDeploy": true
}

Response

Repository connection created or updated

repoOwnerstring required
repoNamestring required
baseDirectorystring required
branchstring nullable required
autoDeployboolean nullable required
isPrivateboolean required
type'github' required

Example response

{
  "repoOwner": "octocat",
  "repoName": "hello-world",
  "baseDirectory": ".",
  "branch": "main",
  "autoDeploy": true,
  "type": "github"
}

Changes