Skip to main content
POST
Reconnect a GitHub repository

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.

Path Parameters

app_id
string
required

ID of the app to reconnect to the GitHub repository it was disconnected from.

Response

The app is connected to its repository again.

direction
enum<string>
required

Which side Base44 brought up to date. The value is one of:

  • none: The two already matched.
  • base44_to_github: Base44 pushed the app's newer commits.
  • github_to_base44: Base44 pulled the repository's newer commits.
Available options:
none,
base44_to_github,
github_to_base44
Example:

"base44_to_github"

repo_full_name
string
required

Full repository name, as owner/repo.

Example:

"base44/lead-tracker"

repo_url
string
required

URL of the repository on GitHub.

Example:

"https://github.com/base44/lead-tracker"

base44_head
string
required

The app's latest commit when the reconnect started.

Example:

"4c7e1f90ab3d5628e1a0f7b24c9d8e6350a1b2c4"

github_head
string
required

Head of the repository's default branch when the reconnect started.

Example:

"9f2c1ab7d4e58036bb1f4c0a7de92b41c0d5e8a3"

sync
GitHubPullResult · object | null

Outcome of pulling the repository's newer commits into the app, or null unless direction is github_to_base44.