LogoFreestyle
API Reference/Git

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

Request Body

application/jsonRequired
githubRepoNameRequiredstring

The GitHub repository name in "owner/repo" format

Path Parameters

repo_idRequiredstring

Repository ID

Format: "uuid"

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"
  }'

GitHub sync configured successfully