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

     1  ---
     2  summary: Mark all notification groups as read
     3  description: Mark all notification groups of the current user as read
     4  operationId: notification_groups/mark_all_as_read
     5  tags:
     6  - Notification Groups
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  responses:
    10    '200':
    11      description: OK
    12      content:
    13        application/json:
    14          schema:
    15            type: array
    16            items:
    17              "$ref": "../../schemas/notification_group_detail.yaml#/notification_group_detail"
    18      headers:
    19        X-Rate-Limit-Limit:
    20          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    21        X-Rate-Limit-Remaining:
    22          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    23        X-Rate-Limit-Reset:
    24          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    25    '400':
    26      "$ref": "../../responses.yaml#/400"
    27    '404':
    28      "$ref": "../../responses.yaml#/404"
    29    '429':
    30      "$ref": "../../responses.yaml#/429"
    31  x-code-samples:
    32  - lang: Curl
    33    source: |-
    34      curl "https://api.phrase.com/v2/notification_groups/mark_all_as_read" \
    35        -u USERNAME_OR_ACCESS_TOKEN \
    36        -X PATCH \
    37        -H 'Content-Type: application/json'
    38  - lang: CLI v2
    39    source: |-
    40      phrase notification_groups mark_all_as_read \
    41      --access_token <token>
    42  x-cli-version: '2.5'