Skip to content

Commit

Permalink
update compiled json
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshchang committed Nov 30, 2023
1 parent 94681b0 commit a559705
Showing 1 changed file with 137 additions and 61 deletions.
198 changes: 137 additions & 61 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,69 @@
}
}
},
"custom_metadata_label": {
"type": "object",
"title": "custom_metadata_label",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"data_type": {
"type": "string",
"enum": [
"boolean",
"date",
"link",
"multi_select",
"number",
"single_select",
"text"
]
},
"user": {
"$ref": "#/components/schemas/user_preview"
},
"account": {
"$ref": "#/components/schemas/account"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"example": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"name": "Character Age",
"description": "Age of character in seconds",
"data_type": "Text value",
"user": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "joe.doe",
"name": "Joe Doe"
},
"account": {
"id": "abcd1234",
"name": "Company Account",
"slug": "company_account",
"company": "My Awesome Company",
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z",
"company_logo_url": "http://assets.example.com/company_logo.png"
},
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z"
}
},
"key_preview": {
"type": "object",
"title": "key_preview",
Expand Down Expand Up @@ -6058,67 +6121,7 @@
"schema": {
"type": "array",
"items": {
"type": "object",
"title": "custom_metadata_label",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"data_type": {
"type": "string",
"enum": [
"boolean",
"date",
"link",
"multi_select",
"number",
"single_select",
"text"
]
},
"user": {
"$ref": "#/components/schemas/user_preview"
},
"account": {
"$ref": "#/components/schemas/account"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"example": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"name": "Character Age",
"description": "Age of character in seconds",
"data_type": "Text value",
"user": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "joe.doe",
"name": "Joe Doe"
},
"account": {
"id": "abcd1234",
"name": "Company Account",
"slug": "company_account",
"company": "My Awesome Company",
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z",
"company_logo_url": "http://assets.example.com/company_logo.png"
},
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z"
}
"$ref": "#/components/schemas/custom_metadata_label"
}
}
}
Expand Down Expand Up @@ -6161,6 +6164,79 @@
"x-cli-version": "2.9"
}
},
"/accounts/{account_id}/custom_metadata/labels/{id}": {
"get": {
"summary": "Get a single label",
"description": "Get details of a single custom metadata label.",
"operationId": "custom_metadata_label/show",
"tags": [
"Custom Metadata"
],
"parameters": [
{
"$ref": "#/components/parameters/X-PhraseApp-OTP"
},
{
"$ref": "#/components/parameters/account_id"
},
{
"$ref": "#/components/parameters/id"
},
{
"description": "specify the branch to use",
"example": "my-feature-branch",
"name": "branch",
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/custom_metadata_label"
}
}
},
"headers": {
"X-Rate-Limit-Limit": {
"$ref": "#/components/headers/X-Rate-Limit-Limit"
},
"X-Rate-Limit-Remaining": {
"$ref": "#/components/headers/X-Rate-Limit-Remaining"
},
"X-Rate-Limit-Reset": {
"$ref": "#/components/headers/X-Rate-Limit-Reset"
}
}
},
"400": {
"$ref": "#/components/responses/400"
},
"404": {
"$ref": "#/components/responses/404"
},
"429": {
"$ref": "#/components/responses/429"
}
},
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/accounts/:account_id/custom_metadata/labels/:id?branch=my-feature-branch\" \\\n -u USERNAME_OR_ACCESS_TOKEN"
},
{
"lang": "CLI v2",
"source": "phrase custom_metadata_labels show \\\n--account_id <account_id> \\\n--id <id> \\\n--branch my-feature-branch \\\n--access_token <token>"
}
],
"x-cli-version": "2.9"
}
},
"/accounts/{account_id}/invitations": {
"get": {
"summary": "List invitations",
Expand Down

0 comments on commit a559705

Please sign in to comment.