202 Accepted
status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the List repository notifications for the authenticated user endpoint and pass the query parameter all=false
.curl --location --request PUT 'https://api.github.com/repos///notifications' \
--header 'Content-Type: application/json' \
--data-raw '{
"last_read_at": "2019-01-01T00:00:00.000Z"
}'
{
"message": "Unread notifications couldn't be marked in a single request. Notifications are being marked as read in the background."
}
YYYY-MM-DDTHH:MM:SSZ
. Default: The current timestamp.