Turn automatic GitHub sync on or off
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Turns automatic sync between the app and its connected GitHub repository on or off.
Automatic sync brings in commits pushed to the repository from outside Base44. While it's on, the Base44 editor pulls them in as soon as GitHub reports them, as long as someone has the app open in it. While it's off, Base44 ignores those reports, so new commits come in only when someone opens the app in the editor or you call Pull changes from GitHub. The setting covers the app's main line and its branches alike.
The setting doesn't affect the other direction. Base44 pushes every saved version to the repository whether automatic sync is on or off, and Push changes to GitHub works either way.
When the repository receives more than 20 pushes within a minute, counting Base44's own, Base44 pauses automatic sync for an hour. Pushes during the pause are ignored, even if you turn automatic sync on, and turning it on doesn't end the pause early. After the hour, the next push ends the pause. Base44 then turns automatic sync back on only if the pause is what turned automatic sync off.
Reconnect a GitHub repository also turns automatic sync back on.
Request
- Base URLhttps://app.base44.com
- URLhttps://app.base44.com/api/apps/{app_id}/github/sync/toggle
- AuthHTTP bearer
Path parameters
ID of the app whose GitHub sync this affects.
Request body
Response
The setting was saved.
Example response
{
"success": true
}Changes
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info
- info
endpoint added
- info