From f04b6777545c74f65db2c99670ccd59bd644ed74 Mon Sep 17 00:00:00 2001 From: Michael Blum Date: Wed, 21 Jan 2026 11:59:24 +0100 Subject: [PATCH 1/2] chore(main): Add import_branch-param (SCD-708) --- doc/compiled.json | 22 ++++++++++++++++++++-- paths/repo_syncs/import.yaml | 14 ++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/doc/compiled.json b/doc/compiled.json index 9cb2352b2..2eb6e13c6 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -22852,13 +22852,31 @@ "x-code-samples": [ { "lang": "Curl", - "source": "curl \"https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/import\"\\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -H 'Content-Type: application/json'" + "source": "curl \"https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/import\"\\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -d '{\"import_branch\":\"my-feature-branch\"}' \\\n -H 'Content-Type: application/json'" }, { "lang": "CLI v2", - "source": "phrase repo_syncs import \\\n--id \\\n--access_token " + "source": "phrase repo_syncs import \\\n--id \\\n--data '{\"import_branch\":\"my-feature-branch\"}' \\\n--access_token " } ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "title": "repo_sync/import/parameters", + "properties": { + "import_branch": { + "description": "Branch to import from", + "type": "string", + "example": "my-feature-branch" + } + } + } + } + } + }, "x-cli-version": "2.24" } }, diff --git a/paths/repo_syncs/import.yaml b/paths/repo_syncs/import.yaml index ae6a44001..8e972c083 100644 --- a/paths/repo_syncs/import.yaml +++ b/paths/repo_syncs/import.yaml @@ -38,10 +38,24 @@ x-code-samples: curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/import"\ -u USERNAME_OR_ACCESS_TOKEN \ -X POST \ + -d '{"import_branch":"my-feature-branch"}' \ -H 'Content-Type: application/json' - lang: CLI v2 source: |- phrase repo_syncs import \ --id \ + --data '{"import_branch":"my-feature-branch"}' \ --access_token +requestBody: + required: false + content: + application/json: + schema: + type: object + title: repo_sync/import/parameters + properties: + import_branch: + description: Branch to import from + type: string + example: my-feature-branch x-cli-version: '2.24' From 0d869de5c29fcb3a44dbaa9d3e351ff5498113bb Mon Sep 17 00:00:00 2001 From: Michael Blum Date: Mon, 26 Jan 2026 10:51:38 +0100 Subject: [PATCH 2/2] Rename to 'repository_branch' --- doc/compiled.json | 6 +++--- paths/repo_syncs/import.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/compiled.json b/doc/compiled.json index 2eb6e13c6..4eefb941d 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -22852,11 +22852,11 @@ "x-code-samples": [ { "lang": "Curl", - "source": "curl \"https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/import\"\\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -d '{\"import_branch\":\"my-feature-branch\"}' \\\n -H 'Content-Type: application/json'" + "source": "curl \"https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/import\"\\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -d '{\"repository_branch\":\"my-feature-branch\"}' \\\n -H 'Content-Type: application/json'" }, { "lang": "CLI v2", - "source": "phrase repo_syncs import \\\n--id \\\n--data '{\"import_branch\":\"my-feature-branch\"}' \\\n--access_token " + "source": "phrase repo_syncs import \\\n--id \\\n--data '{\"repository_branch\":\"my-feature-branch\"}' \\\n--access_token " } ], "requestBody": { @@ -22867,7 +22867,7 @@ "type": "object", "title": "repo_sync/import/parameters", "properties": { - "import_branch": { + "repository_branch": { "description": "Branch to import from", "type": "string", "example": "my-feature-branch" diff --git a/paths/repo_syncs/import.yaml b/paths/repo_syncs/import.yaml index 8e972c083..f17370c11 100644 --- a/paths/repo_syncs/import.yaml +++ b/paths/repo_syncs/import.yaml @@ -38,13 +38,13 @@ x-code-samples: curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/import"\ -u USERNAME_OR_ACCESS_TOKEN \ -X POST \ - -d '{"import_branch":"my-feature-branch"}' \ + -d '{"repository_branch":"my-feature-branch"}' \ -H 'Content-Type: application/json' - lang: CLI v2 source: |- phrase repo_syncs import \ --id \ - --data '{"import_branch":"my-feature-branch"}' \ + --data '{"repository_branch":"my-feature-branch"}' \ --access_token requestBody: required: false @@ -54,7 +54,7 @@ requestBody: type: object title: repo_sync/import/parameters properties: - import_branch: + repository_branch: description: Branch to import from type: string example: my-feature-branch