Link GitHub App Repository
Link a GitHub repository and branch to an application through the Square Cloud GitHub App.
POST
Link GitHub App Repository
string
required
The API key for your account. You can find this in your account settings.
REPOSITORY_NOT_AVAILABLE. It works with an API key that has the apps:deploy scope, and only the application owner can call it.
An application holds one GitHub App link at a time, so unlink the current repository before linking a different one, and the same repository and branch cannot be linked to two of your applications. Linking invalidates the cached response from Get Current Deployment. Calls are rate limited to 3 per 60 seconds per user, shared with unlinking.
Parameters
string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
string
required
The full name of the repository, in the
owner/repository format.string
required
The branch whose pushes deploy the application. Up to 256 characters, and it must exist in the repository.
Response
string
Indicates whether the call was successful..
success if successful, error if not.object
The contents of the response.

