servers

Create or update server repository connection

Upsert a GitHub repository connection for a server. Creates a new connection if none exists, or updates the existing one.

put/servers/{namespace}/{server}/repo

Path parameters

namespacestring required
serverstring required

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