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 notifications for the authenticated user endpoint and pass the query parameter all=false
.curl --location --request PUT 'https://api.github.com/notifications' \
--header 'Content-Type: application/json' \
--data-raw '{
"last_read_at": "2022-06-10T00:00:00.000Z",
"read": true
}'
{
"message": "string"
}
YYYY-MM-DDTHH:MM:SSZ
. Default: The current timestamp.