Create a new Repo Sync.
Enter your token in the format token TOKEN
Two-Factor-Authentication token (optional)
Account ID
ID of the project to connect the Repo Sync to.
"abcd1234abcd1234abcd1234abcd1234"
The authentication method used to connect to the Git provider.
Defaults to token if not specified.
Valid values:
token — Personal access token stored on the Repo Sync. Supported by all providers.github_app — Authenticate via the Phrase GitHub App installation on your account. GitHub only. The account must already have the GitHub App installed; if not, the response will include a github_app_installation_url.self_hosted — Token-based auth for self-hosted Git instances. Requires custom_api_endpoint.token, github_app, self_hosted "github_app"
Full repository name including the owner, e.g. my-org/my-repo.
"my-org/my-repo"
The Git provider to use.
github, gitlab, bitbucket "github"
The default branch to use for imports and exports.
"main"
Branch that translations are exported to before opening a pull request. If omitted, exports go directly to base_branch.
"phrase-translations"
Enable automatic import of translations triggered by pushes to the repository.
false
Personal access token for the Git provider. Required when connection_type is token or self_hosted. Not used for github_app.
"ghp_xxxxxxxxxxxxxxxxxxxx"
Custom API endpoint URL for self-hosted Git instances. Required when connection_type is self_hosted.
"https://git.example.com/api/v4"
Created
{
"id": "abcd1234cdef1234abcd1234cdef1234",
"name": "My Android Project",
"main_format": "xml",
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z"
}