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

     1  ---
     2  summary: List releases
     3  description: List all releases for the given distribution.
     4  operationId: releases/list
     5  tags:
     6  - Releases
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/account_id"
    10  - "$ref": "../../parameters.yaml#/distribution_id"
    11  - "$ref": "../../parameters.yaml#/page"
    12  - "$ref": "../../parameters.yaml#/per_page"
    13  responses:
    14    '200':
    15      description: OK
    16      content:
    17        application/json:
    18          schema:
    19            type: array
    20            items:
    21              "$ref": "../../schemas/release_preview.yaml#/release_preview"
    22      headers:
    23        X-Rate-Limit-Limit:
    24          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    25        X-Rate-Limit-Remaining:
    26          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    27        X-Rate-Limit-Reset:
    28          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    29        Link:
    30          "$ref": "../../headers.yaml#/Link"
    31        Pagination:
    32          "$ref": "../../headers.yaml#/Pagination"
    33    '400':
    34      "$ref": "../../responses.yaml#/400"
    35    '404':
    36      "$ref": "../../responses.yaml#/404"
    37    '429':
    38      "$ref": "../../responses.yaml#/429"
    39  x-code-samples:
    40  - lang: Curl
    41    source: |-
    42      curl "https://api.phrase.com/v2/accounts/:account_id/distributions/:distribution_id/releases" \
    43        -u USERNAME_OR_ACCESS_TOKEN
    44  - lang: CLI v2
    45    source: |-
    46      phrase releases list \
    47      --account_id <account_id> \
    48      --distribution_id <distribution_id> \
    49      --access_token <token>
    50  x-cli-version: '2.5'