-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathexport.yaml
More file actions
49 lines (48 loc) · 1.48 KB
/
export.yaml
File metadata and controls
49 lines (48 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
summary: Export to code repository
description: |-
Export translations from Phrase Strings to repository provider according to the
.phrase.yml file within the code repository.
*Export is done asynchronously and may take several seconds depending on the project size.*
operationId: repo_sync/export
tags:
- Repo Syncs
parameters:
- "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
- "$ref": "../../parameters.yaml#/account_id"
- "$ref": "../../parameters.yaml#/id"
- "$ref": "../../parameters.yaml#/pr_branch"
responses:
'200':
description: OK
content:
application/json:
schema:
"$ref": "../../schemas/repo_sync_event.yaml#/repo_sync_event"
headers:
X-Rate-Limit-Limit:
"$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
X-Rate-Limit-Remaining:
"$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
X-Rate-Limit-Reset:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
'400':
"$ref": "../../responses.yaml#/400"
'404':
"$ref": "../../responses.yaml#/404"
'429':
"$ref": "../../responses.yaml#/429"
x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/export?pr_branch=my-feature-branch"\
-u USERNAME_OR_ACCESS_TOKEN \
-X POST \
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
phrase repo_syncs export \
--id <repo_sync_id> \
--pr_branch my-feature-branch \
--access_token <token>
x-cli-version: '2.24'