github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/glossary_terms/update.yaml (about) 1 --- 2 summary: Update a term 3 description: 'Update an existing term in a term base (previously: glossary).' 4 operationId: glossary_term/update 5 tags: 6 - Glossary Terms 7 parameters: 8 - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" 9 - "$ref": "../../parameters.yaml#/account_id" 10 - "$ref": "../../parameters.yaml#/glossary_id" 11 - "$ref": "../../parameters.yaml#/id" 12 responses: 13 '200': 14 description: OK 15 content: 16 application/json: 17 schema: 18 "$ref": "../../schemas/glossary_term.yaml#/glossary_term" 19 headers: 20 X-Rate-Limit-Limit: 21 "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" 22 X-Rate-Limit-Remaining: 23 "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining" 24 X-Rate-Limit-Reset: 25 "$ref": "../../headers.yaml#/X-Rate-Limit-Reset" 26 '400': 27 "$ref": "../../responses.yaml#/400" 28 '404': 29 "$ref": "../../responses.yaml#/404" 30 '429': 31 "$ref": "../../responses.yaml#/429" 32 x-code-samples: 33 - lang: Curl 34 source: |- 35 curl "https://api.phrase.com/v2/accounts/:account_id/glossaries/:glossary_id/terms/:id" \ 36 -u USERNAME_OR_ACCESS_TOKEN \ 37 -X PATCH \ 38 -d '{"term":"MyCompany","description":"Use this when refering to our company","translatable":true,"case_sensitive":true}' \ 39 -H 'Content-Type: application/json' 40 - lang: CLI v2 41 source: |- 42 phrase glossary_terms update \ 43 --account_id <account_id> \ 44 --glossary_id <glossary_id> \ 45 --id <id> \ 46 --data '{"term":"MyCompany", "description": "Use this when refering to our company", "translatable":true, "case_sensitive":true}' \ 47 --access_token <token> 48 requestBody: 49 required: true 50 content: 51 application/json: 52 schema: 53 type: object 54 title: glossary_term/update/parameters 55 properties: 56 term: 57 description: Glossary term 58 type: string 59 example: MyCompany 60 description: 61 description: Description of term 62 type: string 63 example: Use this when refering to our company 64 translatable: 65 description: Indicates whether the term should be used for all languages or can be translated 66 type: boolean 67 example: true 68 case_sensitive: 69 description: Indicates whether the term is case sensitive 70 type: boolean 71 example: true 72 x-cli-version: '2.5'