---
title: "Update a notification"
method: PUT
path: "/notifications/{id}"
tags: ["Notification"]
---

# Update a notification

`PUT /notifications/{id}`

## Path parameters

- `id` string, required

## Request body

- NotificationUpdateDto
  - `viewed` boolean — Whether the notification has been viewed

## Response `default`

Error

- NotificationDto
  - `id` string, nullable
  - `kind` string, nullable
  - `title` string, nullable
  - `body` string, nullable
  - `viewed` boolean
  - `timestamp` string, date-time
  - `metadata` Metadata
    - `aiProviderId` string, nullable
    - `sourceId` string, nullable
    - `botId` string, nullable
    - `rawAiError` string, nullable

---

[API](https://skmtc.dev/closebot/apis/closebot-api.md) · [All operations](https://skmtc.dev/closebot/apis/closebot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/closebot/closebot-api/revisions/da5f5fb58534/schema)
