diff --git a/doc/compiled.json b/doc/compiled.json index 9cb2352b2..4eefb941d 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 '{\"repository_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 '{\"repository_branch\":\"my-feature-branch\"}' \\\n--access_token " } ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "title": "repo_sync/import/parameters", + "properties": { + "repository_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..f17370c11 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 '{"repository_branch":"my-feature-branch"}' \ -H 'Content-Type: application/json' - lang: CLI v2 source: |- phrase repo_syncs import \ --id \ + --data '{"repository_branch":"my-feature-branch"}' \ --access_token +requestBody: + required: false + content: + application/json: + schema: + type: object + title: repo_sync/import/parameters + properties: + repository_branch: + description: Branch to import from + type: string + example: my-feature-branch x-cli-version: '2.24'