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

     1  ---
     2  summary: Create a reply
     3  description: Create a new reply for a comment.
     4  operationId: reply/create
     5  tags:
     6  - Comment Replies
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/project_id"
    10  - "$ref": "../../parameters.yaml#/key_id"
    11  - "$ref": "../../parameters.yaml#/comment_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  - description: specify the message for the comment
    19    example: some message...
    20    name: message
    21    in: query
    22    schema:
    23      type: string
    24  responses:
    25    '201':
    26      description: Created
    27      content:
    28        application/json:
    29          schema:
    30            "$ref": "../../schemas/comment.yaml#/comment"
    31      headers:
    32        X-Rate-Limit-Limit:
    33          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    34        X-Rate-Limit-Remaining:
    35          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    36        X-Rate-Limit-Reset:
    37          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    38    '400':
    39      "$ref": "../../responses.yaml#/400"
    40    '403':
    41      "$ref": "../../responses.yaml#/403"
    42    '404':
    43      "$ref": "../../responses.yaml#/404"
    44    '429':
    45      "$ref": "../../responses.yaml#/429"
    46  x-code-samples:
    47  - lang: Curl
    48    source: |-
    49      curl "https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments/:comment_id/replies/" \
    50        -u USERNAME_OR_ACCESS_TOKEN \
    51        -X POST \
    52        -d '{"branch":"my-feature-branch", "message":"Some message..."}' \
    53        -H 'Content-Type: application/json'
    54  - lang: CLI v2
    55    source: |-
    56      phrase replies create \
    57      --project_id <project_id> \
    58      --key_id <key_id> \
    59      --comment_id <comment_id> \
    60      --data '{"branch":"my-feature-branch", "message": "Some message..."]}' \
    61      --access_token <token>
    62  x-cli-version: '2.10'