Disconnect a GitHub repository

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Disconnects the app from its GitHub repository. The repository itself stays on GitHub, untouched.

Base44 first copies the repository's current code into its own storage, along with the app's open branches, and the app carries on from that version. If the copy fails, the app stays connected and you can retry. Base44 then stops syncing and tries to remove the webhook it installed on the repository. A webhook it can't remove no longer affects the app. The response comes back only after all of that finishes.

Afterwards Get GitHub connection reports connected: false and names the repository in previous_repository. Restore the connection with Reconnect a GitHub repository. Connecting a different repository with Connect a GitHub repository replaces the previous one, which the app can then no longer reconnect to.

delete/api/apps/{app_id}/github/disconnect

Request

  • Base URL
    https://app.base44.com
  • URL
    https://app.base44.com/api/apps/{app_id}/github/disconnect
  • Auth
    HTTP bearer

Path parameters

app_idstring required

ID of the app to disconnect from its GitHub repository.

Response

The app was disconnected from its repository.

successboolean required

Whether the app was disconnected. Always true, because a disconnect that fails returns an error instead.

Example response

{
  "success": true
}

Changes