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
Example request
{
"baseDirectory": ".",
"branch": "main",
"autoDeploy": true
}Response
Repository connection created or updated
Example response
{
"repoOwner": "octocat",
"repoName": "hello-world",
"baseDirectory": ".",
"branch": "main",
"autoDeploy": true,
"type": "github"
}