From 52b1844873ef9d325269cb9eea6bdc9b8d22493f Mon Sep 17 00:00:00 2001 From: Anthony Chang <anthony.chang@memsource.com> Date: Thu, 7 Dec 2023 09:20:51 +0100 Subject: [PATCH] wip --- paths/keys/create.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/paths/keys/create.yaml b/paths/keys/create.yaml index 4bec002e..6bd35f38 100644 --- a/paths/keys/create.yaml +++ b/paths/keys/create.yaml @@ -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 @@ -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'