Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -7445,7 +7445,7 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/custom_metadata/properties/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN\n -X DELETE\n -H 'Content-Type: application/json'"
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/custom_metadata/properties/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X DELETE \\\n -H 'Content-Type: application/json'"
},
{
"lang": "CLI v2",
Expand Down Expand Up @@ -8562,7 +8562,7 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/screenshots/:screenshot_id/markers\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X DELETE\n -d '{\"branch\":\"my-feature-branch\"}' \\\n -H 'Content-Type: application/json'"
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/screenshots/:screenshot_id/markers\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X DELETE \\\n -d '{\"branch\":\"my-feature-branch\"}' \\\n -H 'Content-Type: application/json'"
},
{
"lang": "CLI v2",
Expand Down Expand Up @@ -21438,7 +21438,7 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/screenshots/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X DELETE\n -d '{\"branch\":\"my-feature-branch\"}' \\\n -H 'Content-Type: application/json'"
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/screenshots/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X DELETE \\\n -d '{\"branch\":\"my-feature-branch\"}' \\\n -H 'Content-Type: application/json'"
},
{
"lang": "CLI v2",
Expand Down Expand Up @@ -22825,7 +22825,7 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/keys\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -F branch=my-feature-branch \\\n -F name=home.index.headline \\\n -F description=Some%20description%20worth%20knowing... \\\n -F name_plural=home.index.headlines \\\n -F data_type=number \\\n -F tags=awesome-feature,needs-proofreading \\\n -F max_characters_allowed=140 \\\n -F screenshot=@/path/to/my/screenshot.png\n -F custom_metadata[property]=value"
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/keys\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -F branch=my-feature-branch \\\n -F name=home.index.headline \\\n -F description=Some%20description%20worth%20knowing... \\\n -F name_plural=home.index.headlines \\\n -F data_type=number \\\n -F tags=awesome-feature,needs-proofreading \\\n -F max_characters_allowed=140 \\\n -F screenshot=@/path/to/my/screenshot.png \\\n -F custom_metadata[property]=value"
},
{
"lang": "CLI v2",
Expand Down Expand Up @@ -23315,7 +23315,7 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/keys/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X PATCH \\\n -F branch=my-feature-branch \\\n -F name=home.index.headline \\\n -F description=Some%20description%20worth%20knowing... \\\n -F name_plural=home.index.headlines \\\n -F data_type=number \\\n -F tags=awesome-feature,needs-proofreading \\\n -F max_characters_allowed=140 \\\n -F screenshot=@/path/to/my/screenshot.png\n -F custom_metadata[property]=value"
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/keys/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X PATCH \\\n -F branch=my-feature-branch \\\n -F name=home.index.headline \\\n -F description=Some%20description%20worth%20knowing... \\\n -F name_plural=home.index.headlines \\\n -F data_type=number \\\n -F tags=awesome-feature,needs-proofreading \\\n -F max_characters_allowed=140 \\\n -F screenshot=@/path/to/my/screenshot.png \\\n -F custom_metadata[property]=value"
},
{
"lang": "CLI v2",
Expand Down Expand Up @@ -31544,7 +31544,7 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/automations/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN\n -X DELETE\n -H 'Content-Type: application/json'"
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/automations/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X DELETE \\\n -H 'Content-Type: application/json'"
},
{
"lang": "CLI v2",
Expand Down Expand Up @@ -31617,7 +31617,7 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/automations/:id/activate\" \\\n -u USERNAME_OR_ACCESS_TOKEN\n -X POST\n -H 'Content-Type: application/json'"
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/automations/:id/activate\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -H 'Content-Type: application/json'"
},
{
"lang": "CLI v2",
Expand Down Expand Up @@ -31690,7 +31690,7 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/automations/:id/deactivate\" \\\n -u USERNAME_OR_ACCESS_TOKEN\n -X POST\n -H 'Content-Type: application/json'"
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/automations/:id/deactivate\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -H 'Content-Type: application/json'"
},
{
"lang": "CLI v2",
Expand Down Expand Up @@ -31745,7 +31745,7 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/automations/:id/trigger\" \\\n -u USERNAME_OR_ACCESS_TOKEN\n -X POST\n -H 'Content-Type: application/json'"
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/automations/:id/trigger\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X POST \\\n -H 'Content-Type: application/json'"
},
{
"lang": "CLI v2",
Expand Down
4 changes: 2 additions & 2 deletions paths/automations/activate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/accounts/:account_id/automations/:id/activate" \
-u USERNAME_OR_ACCESS_TOKEN
-X POST
-u USERNAME_OR_ACCESS_TOKEN \
-X POST \
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
Expand Down
4 changes: 2 additions & 2 deletions paths/automations/deactivate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/accounts/:account_id/automations/:id/deactivate" \
-u USERNAME_OR_ACCESS_TOKEN
-X POST
-u USERNAME_OR_ACCESS_TOKEN \
-X POST \
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
Expand Down
4 changes: 2 additions & 2 deletions paths/automations/destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/accounts/:account_id/automations/:id" \
-u USERNAME_OR_ACCESS_TOKEN
-X DELETE
-u USERNAME_OR_ACCESS_TOKEN \
-X DELETE \
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
Expand Down
4 changes: 2 additions & 2 deletions paths/automations/trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/accounts/:account_id/automations/:id/trigger" \
-u USERNAME_OR_ACCESS_TOKEN
-X POST
-u USERNAME_OR_ACCESS_TOKEN \
-X POST \
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
Expand Down
4 changes: 2 additions & 2 deletions paths/custom_metadata_properties/destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/accounts/:account_id/custom_metadata/properties/:id" \
-u USERNAME_OR_ACCESS_TOKEN
-X DELETE
-u USERNAME_OR_ACCESS_TOKEN \
-X DELETE \
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
Expand Down
2 changes: 1 addition & 1 deletion paths/keys/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ x-code-samples:
-F data_type=number \
-F tags=awesome-feature,needs-proofreading \
-F max_characters_allowed=140 \
-F screenshot=@/path/to/my/screenshot.png
-F screenshot=@/path/to/my/screenshot.png \
-F custom_metadata[property]=value
- lang: CLI v2
source: |-
Expand Down
2 changes: 1 addition & 1 deletion paths/keys/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ x-code-samples:
-F data_type=number \
-F tags=awesome-feature,needs-proofreading \
-F max_characters_allowed=140 \
-F screenshot=@/path/to/my/screenshot.png
-F screenshot=@/path/to/my/screenshot.png \
-F custom_metadata[property]=value
- lang: CLI v2
source: |-
Expand Down
2 changes: 1 addition & 1 deletion paths/screenshot_markers/destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ x-code-samples:
source: |-
curl "https://api.phrase.com/v2/projects/:project_id/screenshots/:screenshot_id/markers" \
-u USERNAME_OR_ACCESS_TOKEN \
-X DELETE
-X DELETE \
-d '{"branch":"my-feature-branch"}' \
-H 'Content-Type: application/json'
- lang: CLI v2
Expand Down
2 changes: 1 addition & 1 deletion paths/screenshots/destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ x-code-samples:
source: |-
curl "https://api.phrase.com/v2/projects/:project_id/screenshots/:id" \
-u USERNAME_OR_ACCESS_TOKEN \
-X DELETE
-X DELETE \
-d '{"branch":"my-feature-branch"}' \
-H 'Content-Type: application/json'
- lang: CLI v2
Expand Down
Loading