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

     1  ---
     2  summary: Attach the Figma attachment to a key
     3  description: Attach the Figma attachment to a key
     4  operationId: figma_attachment/attach_to_key
     5  tags:
     6    - Key's Figma attachments
     7  parameters:
     8    - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9    - "$ref": "../../parameters.yaml#/project_id"
    10    - "$ref": "../../parameters.yaml#/figma_attachment_id"
    11    - "$ref": "../../parameters.yaml#/id"
    12    - description: specify the branch to use
    13      example: my-feature-branch
    14      name: branch
    15      in: query
    16      schema:
    17        type: string
    18  responses:
    19    "204":
    20      "$ref": "../../responses.yaml#/204"
    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/figma_attachments/:figma_attachment_id/keys" \
    31          -u USERNAME_OR_ACCESS_TOKEN \
    32          -X POST \
    33          -F branch=my-feature-branch \
    34          -F id=key_id \
    35          -H 'Content-Type: application/json'
    36    - lang: CLI v2
    37      source: |-
    38        phrase figma_attachment attach_to_key \
    39        --project_id <project_id> \
    40        --figma_attachment_id <figma_attachment_id> \
    41        --id <id> \
    42        --branch my-feature-branch \
    43        --access_token <token>
    44  x-cli-version: "2.13"