github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/screenshots/destroy.yaml (about)

     1  ---
     2  summary: Delete a screenshot
     3  description: Delete an existing screenshot.
     4  operationId: screenshot/delete
     5  tags:
     6  - Screenshots
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/project_id"
    10  - "$ref": "../../parameters.yaml#/id"
    11  - description: specify the branch to use
    12    example: my-feature-branch
    13    name: branch
    14    in: query
    15    schema:
    16      type: string
    17  responses:
    18    '204':
    19      "$ref": "../../responses.yaml#/204"
    20    '400':
    21      "$ref": "../../responses.yaml#/400"
    22    '404':
    23      "$ref": "../../responses.yaml#/404"
    24    '429':
    25      "$ref": "../../responses.yaml#/429"
    26  x-code-samples:
    27  - lang: Curl
    28    source: |-
    29      curl "https://api.phrase.com/v2/projects/:project_id/screenshots/:id" \
    30        -u USERNAME_OR_ACCESS_TOKEN \
    31        -X DELETE
    32        -d '{"branch":"my-feature-branch"}' \
    33        -H 'Content-Type: application/json'
    34  - lang: CLI v2
    35    source: |-
    36      phrase screenshots delete \
    37      --project_id <project_id> \
    38      --id <id> \
    39      --branch my-feature-branch \
    40      --access_token <token>
    41  x-cli-version: '2.5'