LogoFreestyle
API ReferenceGit

Configure GitHub sync for repository

Configure GitHub synchronization for an existing Freestyle repository. This links your Freestyle repository to a GitHub repository for automatic syncing. Requires the GitHub repository name in 'owner/repo' format.

POST
/git/v1/repo/{repo_id}/github-sync

Path Parameters

repo_id*string

Repository ID

Formatuuid

Request Body

application/json

githubRepoName*string

The GitHub repository name in "owner/repo" format

Response Body

curl -X POST "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/github-sync" \  -H "Content-Type: application/json" \  -d '{    "githubRepoName": "string"  }'
Empty
Empty
Empty
Empty

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.