Skip to content

Commit 0d869de

Browse files
committed
Rename to 'repository_branch'
1 parent f04b677 commit 0d869de

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/compiled.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22852,11 +22852,11 @@
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 -d '{\"import_branch\":\"my-feature-branch\"}' \\\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--data '{\"import_branch\":\"my-feature-branch\"}' \\\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
],
2286222862
"requestBody": {
@@ -22867,7 +22867,7 @@
2286722867
"type": "object",
2286822868
"title": "repo_sync/import/parameters",
2286922869
"properties": {
22870-
"import_branch": {
22870+
"repository_branch": {
2287122871
"description": "Branch to import from",
2287222872
"type": "string",
2287322873
"example": "my-feature-branch"

paths/repo_syncs/import.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ 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 '{"import_branch":"my-feature-branch"}' \
41+
-d '{"repository_branch":"my-feature-branch"}' \
4242
-H 'Content-Type: application/json'
4343
- lang: CLI v2
4444
source: |-
4545
phrase repo_syncs import \
4646
--id <repo_sync_id> \
47-
--data '{"import_branch":"my-feature-branch"}' \
47+
--data '{"repository_branch":"my-feature-branch"}' \
4848
--access_token <token>
4949
requestBody:
5050
required: false
@@ -54,7 +54,7 @@ requestBody:
5454
type: object
5555
title: repo_sync/import/parameters
5656
properties:
57-
import_branch:
57+
repository_branch:
5858
description: Branch to import from
5959
type: string
6060
example: my-feature-branch

0 commit comments

Comments
 (0)