Skip to content

Commit

Permalink
update label -> property
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshchang committed Nov 30, 2023
1 parent da0c66c commit e22dae6
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
18 changes: 9 additions & 9 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
"Translations",
"Uploads",
"Tags",
"Custom Metadata Labels",
"Custom Metadata Properties",
"Blacklisted Keys",
"Versions / History"
]
Expand Down Expand Up @@ -698,9 +698,9 @@
}
}
},
"custom_metadata_label": {
"custom_metadata_property": {
"type": "object",
"title": "custom_metadata_label",
"title": "custom_metadata_property",
"properties": {
"id": {
"type": "string"
Expand Down Expand Up @@ -6055,9 +6055,9 @@
},
"/accounts/{account_id}/custom_metadata/labels": {
"get": {
"summary": "List labels",
"description": "List all custom metadata labels for an account.\n\nThis endpoint is only available to accounts with advanced plans or above.\n",
"operationId": "custom_metadata_labels/list",
"summary": "List custom metadata properties",
"description": "List all custom metadata properties for an account.\n\nThis endpoint is only available to accounts with advanced plans or above.\n",
"operationId": "custom_metadata_properties/list",
"tags": [
"Custom Metadata"
],
Expand All @@ -6084,7 +6084,7 @@
}
},
{
"description": "ids of projects that the labels belong to",
"description": "ids of projects that the properties belong to",
"example": [
"abcd1234cdef1234abcd1234cdef1234"
],
Expand Down Expand Up @@ -6124,7 +6124,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/custom_metadata_label"
"$ref": "#/components/schemas/custom_metadata_properties"
}
}
}
Expand Down Expand Up @@ -6161,7 +6161,7 @@
},
{
"lang": "CLI v2",
"source": "phrase custom_metadata_labels list \\\n--account_id <account_id> \\\n--branch my-feature-branch \\\n--page 1 \\\n--per_page 10 \\\n--project_ids [1,2,3] \\\n--sort created_at \\\n--order desc \\\n--access_token <token>"
"source": "phrase custom_metadata_properties list \\\n--account_id <account_id> \\\n--branch my-feature-branch \\\n--page 1 \\\n--per_page 10 \\\n--project_ids [1,2,3] \\\n--sort created_at \\\n--order desc \\\n--access_token <token>"
}
],
"x-cli-version": "2.9"
Expand Down
2 changes: 1 addition & 1 deletion main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ x-tagGroups:
- Translations
- Uploads
- Tags
- Custom Metadata Labels
- Custom Metadata Properties
- Blacklisted Keys
- Versions / History
- name: Workflows
Expand Down
4 changes: 2 additions & 2 deletions paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
"$ref": "./paths/styleguides/update.yaml"
delete:
"$ref": "./paths/styleguides/destroy.yaml"
"/accounts/{account_id}/custom_metadata/labels":
"/accounts/{account_id}/custom_metadata/properties":
get:
"$ref": "./paths/custom_metadata_labels/index.yaml"
"$ref": "./paths/custom_metadata_properties/index.yaml"
"/accounts/{account_id}/invitations":
get:
"$ref": "./paths/invitations/index.yaml"
Expand Down
12 changes: 6 additions & 6 deletions paths/custom_metadata_labels/index.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
summary: List labels
summary: List properties
description: |
List all custom metadata labels for an account.
List all custom metadata properties for an account.
This endpoint is only available to accounts with advanced plans or above.
operationId: custom_metadata_labels/list
operationId: custom_metadata_properties/list
tags:
- Custom Metadata
parameters:
Expand All @@ -18,7 +18,7 @@ parameters:
in: query
schema:
type: string
- description: ids of projects that the labels belong to
- description: ids of projects that the properties belong to
example:
- abcd1234cdef1234abcd1234cdef1234
name: project_ids
Expand Down Expand Up @@ -47,7 +47,7 @@ responses:
schema:
type: array
items:
"$ref": "../../schemas/custom_metadata_label.yaml#/custom_metadata_label"
"$ref": "../../schemas/custom_metadata_property.yaml#/custom_metadata_property"
headers:
X-Rate-Limit-Limit:
"$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
Expand All @@ -70,7 +70,7 @@ x-code-samples:
-u USERNAME_OR_ACCESS_TOKEN
- lang: CLI v2
source: |-
phrase custom_metadata_labels list \
phrase custom_metadata_properties list \
--account_id <account_id> \
--branch my-feature-branch \
--page 1 \
Expand Down
4 changes: 2 additions & 2 deletions schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ schemas:
"$ref": schemas/comment.yaml#/comment
comment_reaction:
"$ref": schemas/comment_reaction.yaml#/comment_reaction
custom_metadata_label:
"$ref": schemas/custom_metadata_label.yaml#/custom_metadata_label
custom_metadata_property:
"$ref": schemas/custom_metadata_property.yaml#/custom_metadata_property
key_preview:
"$ref": schemas/key_preview.yaml#/key_preview
affected_count:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
custom_metadata_label:
custom_metadata_property:
type: object
title: custom_metadata_label
title: custom_metadata_property
properties:
id:
type: string
Expand Down

0 comments on commit e22dae6

Please sign in to comment.