# markAllNotificationsRead

Mark your WHOLE notification feed read (`isSeen: true`) or unread (false). `userId` must be your own (getMyProfile `currentUser.id`); any other is refused. Optional `notificationTypeFilter` (exact getAvailableNotificationTypes value) narrows it; `notIncludedNotificationIds` are left alone. Returns how many changed. Never a teammate's feed.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "markAllNotificationsRead", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `userId`: `String!` (required)
- `isSeen`: `Boolean!` (required)
- `notificationTypeFilter`: `String`
- `notIncludedNotificationIds`: `[String!]`

## Response (data, an example)

```json
{
  "notificationMutation": {
    "toggleBulkNotificationSeen": 0
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "markAllNotificationsRead",
    "variables": {
      "userId": "<String>",
      "isSeen": true
    }
  }'
```
