github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/translations/batch_verify.yaml (about) 1 --- 2 summary: Verify translations by query 3 description: Verify translations matching query. 4 operationId: translations/verify-collection 5 tags: 6 - Translations 7 parameters: 8 - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" 9 - "$ref": "../../parameters.yaml#/project_id" 10 responses: 11 '200': 12 description: OK 13 content: 14 application/json: 15 schema: 16 "$ref": "../../schemas/affected_count.yaml#/affected_count" 17 headers: 18 X-Rate-Limit-Limit: 19 "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" 20 X-Rate-Limit-Remaining: 21 "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining" 22 X-Rate-Limit-Reset: 23 "$ref": "../../headers.yaml#/X-Rate-Limit-Reset" 24 '400': 25 "$ref": "../../responses.yaml#/400" 26 '404': 27 "$ref": "../../responses.yaml#/404" 28 '429': 29 "$ref": "../../responses.yaml#/429" 30 x-code-samples: 31 - lang: Curl 32 source: |- 33 curl "https://api.phrase.com/v2/projects/:project_id/translations/verify" \ 34 -u USERNAME_OR_ACCESS_TOKEN \ 35 -X PATCH \ 36 -d '{"branch":"my-feature-branch","q":"PhraseApp*%20unverified:true%20tags:feature,center"}' \ 37 -H 'Content-Type: application/json' 38 - lang: CLI v2 39 source: |- 40 phrase translations verify-collection \ 41 --project_id <project_id> \ 42 --data '{"branch":"my-feature-branch", "q":"'PhraseApp*%20unverified:true%20tags:feature,center'"}' \ 43 --access_token <token> 44 requestBody: 45 required: true 46 content: 47 application/json: 48 schema: 49 type: object 50 title: translations/verify/parameters 51 properties: 52 branch: 53 description: specify the branch to use 54 type: string 55 example: my-feature-branch 56 locale_id: 57 description: specify the locale of the translations to be verified 58 type: string 59 example: fc2f11dd6a658fa9652f6f0a9ebee688 60 q: 61 description: | 62 Specify a query to find translations by content (including wildcards).<br><br> 63 <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> 64 The following qualifiers are supported in the query:<br> 65 <ul> 66 <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> 67 <li><code>tags:XYZ</code> for tags on the translation</li> 68 <li><code>unverified:{true|false}</code> for verification status</li> 69 <li><code>excluded:{true|false}</code> for exclusion status</li> 70 <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> 71 </ul> 72 Find more examples <a href="#overview--usage-examples">here</a>. 73 type: string 74 example: PhraseApp*%20unverified:true%20tags:feature,center 75 x-cli-version: '2.5'