v1

latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KB
Repo Syncs

Activate a Repo Sync

Activate a deactivated Repo Sync. Active syncs can be used to import and export translations, and imports to Phrase are automatically triggered by pushes to the repository, if configured.

post/accounts/{account_id}/repo_syncs/{id}/activate

Path parameters

account_idstring required

Account ID

idstring required

ID

Headers

X-PhraseApp-OTPstring

Two-Factor-Authentication token (optional)

Response

OK

idstring
namestring nullable

Optional custom display name for this repo sync. When null or blank, the sync is displayed using the associated project name.

providerstring
enabledboolean
auto_importboolean
repo_namestring
pr_branchstring nullable

Branch used as the source of exports/PRs. May be null when the sync is configured to push directly to base_branch.

created_atstring date-time
last_import_atstring date-time nullable
last_export_atstring date-time nullable

Example response

{
  "id": "abcd1234cdef1234abcd1234cdef1234",
  "project": {
    "id": "abcd1234cdef1234abcd1234cdef1234",
    "name": "My Android Project",
    "main_format": "xml",
    "created_at": "2015-01-28T09:52:53Z",
    "updated_at": "2015-01-28T09:52:53Z"
  },
  "provider": "github",
  "enabled": true,
  "auto_import": true,
  "repo_name": "organization/repo",
  "created_at": "2015-01-28T09:52:53Z",
  "last_import_at": "2015-01-28T09:52:53Z",
  "last_export_at": "2015-01-28T09:52:53Z"
}