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>"
}
}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>"
}
}CloseBot API Key Authorization
The ID of the notification to update.
The notification update input.
Whether the notification has been viewed