File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed
Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -22852,13 +22852,31 @@
2285222852 "x-code-samples": [
2285322853 {
2285422854 "lang": "Curl",
22855- "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'"
22855+ "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'"
2285622856 },
2285722857 {
2285822858 "lang": "CLI v2",
22859- "source": "phrase repo_syncs import \\\n--id <repo_sync_id> \\\n--access_token <token>"
22859+ "source": "phrase repo_syncs import \\\n--id <repo_sync_id> \\\n--data '{\"repository_branch\":\"my-feature-branch\"}' \\\n-- access_token <token>"
2286022860 }
2286122861 ],
22862+ "requestBody": {
22863+ "required": false,
22864+ "content": {
22865+ "application/json": {
22866+ "schema": {
22867+ "type": "object",
22868+ "title": "repo_sync/import/parameters",
22869+ "properties": {
22870+ "repository_branch": {
22871+ "description": "Branch to import from",
22872+ "type": "string",
22873+ "example": "my-feature-branch"
22874+ }
22875+ }
22876+ }
22877+ }
22878+ }
22879+ },
2286222880 "x-cli-version": "2.24"
2286322881 }
2286422882 },
Original file line number Diff line number Diff line change @@ -38,10 +38,24 @@ x-code-samples:
3838 curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/import"\
3939 -u USERNAME_OR_ACCESS_TOKEN \
4040 -X POST \
41+ -d '{"repository_branch":"my-feature-branch"}' \
4142 -H 'Content-Type: application/json'
4243 - lang : CLI v2
4344 source : |-
4445 phrase repo_syncs import \
4546 --id <repo_sync_id> \
47+ --data '{"repository_branch":"my-feature-branch"}' \
4648 --access_token <token>
49+ requestBody :
50+ required : false
51+ content :
52+ application/json :
53+ schema :
54+ type : object
55+ title : repo_sync/import/parameters
56+ properties :
57+ repository_branch :
58+ description : Branch to import from
59+ type : string
60+ example : my-feature-branch
4761x-cli-version : ' 2.24'
You can’t perform that action at this time.
0 commit comments