github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/translations/batch_review.yaml (about) 1 --- 2 summary: Review translations selected by query 3 description: Review translations matching query. 4 operationId: translations/review-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/review" \ 34 -u USERNAME_OR_ACCESS_TOKEN \ 35 -X PATCH \ 36 -d '{"branch":"my-feature-branch","q":"PhraseApp*%reviewed:false%20tags:feature,center"}' \ 37 -H 'Content-Type: application/json' 38 - lang: CLI v2 39 source: |- 40 phrase translations review-collection \ 41 --project_id <project_id> \ 42 --data '{"branch":"my-feature-branch", "q":"'PhraseApp*%reviewed:false%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/review/parameters 51 properties: 52 branch: 53 description: specify the branch to use 54 type: string 55 example: my-feature-branch 56 q: 57 description: | 58 Specify a query to find translations by content (including wildcards).<br><br> 59 <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> 60 The following qualifiers are supported in the query:<br> 61 <ul> 62 <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> 63 <li><code>tags:XYZ</code> for tags on the translation</li> 64 <li><code>unverified:{true|false}</code> for verification status</li> 65 <li><code>excluded:{true|false}</code> for exclusion status</li> 66 <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> 67 </ul> 68 Find more examples <a href="#overview--usage-examples">here</a>. 69 type: string 70 example: PhraseApp*%reviewed:false%20tags:feature,center 71 x-cli-version: '2.5'