diff --git a/doc/compiled.json b/doc/compiled.json index 92c8dc42..17b9db7e 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -6195,15 +6195,55 @@ { "$ref": "#/components/parameters/id" }, + { + "description": "name of the property", + "example": [ + "Fruit" + ], + "name": "name", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "description": "description of property", + "example": [ + "A healthy snack for all ages" + ], + "name": "description", + "in": "query", + "schema": { + "type": "string" + } + }, { "description": "ids of projects that the property belongs to", + "example": [ + "abcd1234cdef1234abcd1234cdef1234" + ], "name": "project_ids", "in": "query", "schema": { "type": "array", "items": { - "type": "string", - "example": "abcd1234cdef1234abcd1234cdef1234" + "type": "string" + } + } + }, + { + "description": "value options of property (only applies to single or multi select properties)", + "example": [ + "Apple", + "Banana", + "Coconut" + ], + "name": "value_options", + "in": "query", + "schema": { + "type": "array", + "items": { + "type": "string" } } } @@ -6243,7 +6283,7 @@ "x-code-samples": [ { "lang": "Curl", - "source": "curl \"https://api.phrase.com/v2/accounts/:account_id/custom_metadata/labels/:id?project_ids=%5B1,2,3%5D\" \\\n -u USERNAME_OR_ACCESS_TOKEN" + "source": "curl \"https://api.phrase.com/v2/accounts/:account_id/custom_metadata/labels/:id?name=Fruit&description=A healthy snack for all ages&project_ids=%5B1,2,3%5D\" \\\n -u USERNAME_OR_ACCESS_TOKEN" }, { "lang": "CLI v2", diff --git a/paths/custom_metadata_properties/update.yaml b/paths/custom_metadata_properties/update.yaml index 5971fcd0..9f49234a 100644 --- a/paths/custom_metadata_properties/update.yaml +++ b/paths/custom_metadata_properties/update.yaml @@ -8,14 +8,40 @@ parameters: - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" - "$ref": "../../parameters.yaml#/account_id" - "$ref": "../../parameters.yaml#/id" +- description: name of the property + example: + - Fruit + name: name + in: query + schema: + type: string +- description: description of property + example: + - A healthy snack for all ages + name: description + in: query + schema: + type: string - description: ids of projects that the property belongs to + example: + - abcd1234cdef1234abcd1234cdef1234 name: project_ids in: query schema: type: array items: type: string - example: abcd1234cdef1234abcd1234cdef1234 +- description: value options of property (only applies to single or multi select properties) + example: + - Apple + - Banana + - Coconut + name: value_options + in: query + schema: + type: array + items: + type: string responses: '200': description: OK @@ -39,7 +65,7 @@ responses: x-code-samples: - lang: Curl source: |- - curl "https://api.phrase.com/v2/accounts/:account_id/custom_metadata/labels/:id?project_ids=%5B1,2,3%5D" \ + curl "https://api.phrase.com/v2/accounts/:account_id/custom_metadata/labels/:id?name=Fruit&description=A healthy snack for all ages&project_ids=%5B1,2,3%5D" \ -u USERNAME_OR_ACCESS_TOKEN - lang: CLI v2 source: |- diff --git a/schemas/custom_metadata_property.yaml b/schemas/custom_metadata_property.yaml index c5041979..89f52e9b 100644 --- a/schemas/custom_metadata_property.yaml +++ b/schemas/custom_metadata_property.yaml @@ -54,7 +54,7 @@ custom_metadata_property: created_at: '2015-01-28T09:52:53Z' updated_at: '2015-01-28T09:52:53Z' value_options: - - apple - - banana - - coconut + - apple + - banana + - coconut