subscribed
to true
. If you would like to ignore notifications made within a repository, set ignored
to true
. If you would like to stop watching a repository, delete the repository's subscription completely.curl --location --request PUT 'https://api.github.com/repos///subscription' \
--header 'Content-Type: application/json' \
--data-raw '{
"ignored": true,
"subscribed": true
}'
{
"created_at": "2016-06-13T14:52:50-05:00",
"expired": true,
"html_url": "https://github.com/octocat/Hello-World/invitations",
"id": 42,
"invitee": {},
"inviter": {},
"node_id": "string",
"permissions": "read",
"repository": {},
"url": "https://api.github.com/user/repository-invitations/1"
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通