Skip to main content
PUT
/
notifications
/
{id}
Update a notification
curl --request PUT \
  --url https://api.closebot.com/notifications/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '{
  "viewed": true
}'
{
  "id": "<string>",
  "kind": "<string>",
  "title": "<string>",
  "body": "<string>",
  "viewed": true,
  "timestamp": "2023-11-07T05:31:56Z",
  "metadata": {
    "aiProviderId": "<string>",
    "sourceId": "<string>",
    "botId": "<string>",
    "rawAiError": "<string>"
  }
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

id
string
required

The ID of the notification to update.

Body

The notification update input.

viewed
boolean

Whether the notification has been viewed

Response

Error

id
string | null
kind
string | null
title
string | null
body
string | null
viewed
boolean
timestamp
string<date-time>
metadata
object