Skip to main content
PUT
Connect a repository

Path Parameters

project_id
string
required

The project's id (not its slug). GET /admin/api/projects lists each project's id and slug.

Body

application/json
repository
string
required

owner/name

token
string
required
write-only

Your own GitHub fine-grained token for this repository. It needs Contents: read. Add Webhooks: write if Hookie should add the push webhook. Create it in GitHub under Settings, Developer settings. Write-only.

branch
string

Defaults to the repository's default branch.

sync_paths
string[]
Maximum array length: 20

Response

Successful operation

The response is of type object.