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

     1  ---
     2  summary: Delete a Figma attachment
     3  description: Delete an existing Figma attachment.
     4  operationId: figma_attachment/delete
     5  tags:
     6    - Figma attachments
     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/figma_attachments/: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 figma_attachment delete \
    37        --project_id <project_id> \
    38        --id <id> \
    39        --branch my-feature-branch \
    40        --access_token <token>
    41  x-cli-version: "2.13"