github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/webhooks/test.yaml (about) 1 --- 2 summary: Test a webhook 3 description: Perform a test request for a webhook. 4 operationId: webhook/test 5 tags: 6 - Webhooks 7 parameters: 8 - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" 9 - "$ref": "../../parameters.yaml#/project_id" 10 - "$ref": "../../parameters.yaml#/id" 11 responses: 12 '200': 13 description: OK 14 headers: 15 X-Rate-Limit-Limit: 16 "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" 17 X-Rate-Limit-Remaining: 18 "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining" 19 X-Rate-Limit-Reset: 20 "$ref": "../../headers.yaml#/X-Rate-Limit-Reset" 21 '400': 22 "$ref": "../../responses.yaml#/400" 23 '404': 24 "$ref": "../../responses.yaml#/404" 25 '429': 26 "$ref": "../../responses.yaml#/429" 27 x-code-samples: 28 - lang: Curl 29 source: |- 30 curl "https://api.phrase.com/v2/projects/:project_id/webhooks/:id/test" \ 31 -u USERNAME_OR_ACCESS_TOKEN \ 32 -X POST 33 - lang: CLI v2 34 source: |- 35 phrase webhooks test \ 36 --project_id <project_id> \ 37 --id <id> \ 38 --access_token <token> 39 x-cli-version: '2.5'