Skip to main content
POST
Link a repository and branch to an app

Authorizations

X-Outerlayer-App-Id
string
header
required

Factory id the request is scoped to.

Authorization
string
header
required

API key (sk_outerlayer_*)

Path Parameters

appId
string<uuid>
required

Body

application/json
branch
string
required

Branch to watch; each push to it syncs the app's context. Must already exist on the remote.

Required string length: 1 - 255
repository
string
required

Repository identifier in owner/repo form, from the full_name field of the repositories list.

Required string length: 1 - 255
installation_id
integer

The installation that reaches the repository, from the installation_id of the repositories list. May be omitted when the factory holds one installation, or when exactly one of its installations can see the repository.

Required range: x > 0

Response

Repository linked.

data
object
required