202 Accepted
status and GitHub Enterprise Server 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-08-24T14:15:22Z"
}'
{
"message": "string",
"url": "string"
}
Authorization: Bearer ********************
YYYY-MM-DDTHH:MM:SSZ
. Default: The current timestamp.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通