Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshchang committed Dec 7, 2023
1 parent 7b636a6 commit 52b1844
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion paths/keys/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ x-code-samples:
-F tags=awesome-feature,needs-proofreading \
-F max_characters_allowed=140 \
-F screenshot=@/path/to/my/screenshot.png
-F custom_metadata[property]=value
- lang: CLI v2
source: |-
phrase keys create \
--project_id <project_id> \
--data '{"branch":"my-feature-branch", "name":"home.index.headline", "description": "Some description worth knowing...", "name_plural":"home.index.headlines", "data_type":"number", "tags":"awesome-feature,needs-proofreading", "max_characters_allowed":"140", "screenshot":"/path/to/my/screenshot.png"}' \
--data '{"branch":"my-feature-branch", "name":"home.index.headline", "description": "Some description worth knowing...", "name_plural":"home.index.headlines", "data_type":"number", "tags":"awesome-feature,needs-proofreading", "max_characters_allowed":"140", "screenshot":"/path/to/my/screenshot.png", "custom_metadata": {"property" => "value"}}' \
--access_token <token>
requestBody:
required: true
Expand Down Expand Up @@ -122,4 +123,8 @@ requestBody:
description: NSStringLocalizedFormatKey attribute. Used in .stringsdict format.
type: string
example:
custom_metadata:
description: Custom metadata property name and value pairs to be associated with key.
type: object

x-cli-version: '2.5'

0 comments on commit 52b1844

Please sign in to comment.