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": false,
"subscribed": true
}'
{
"created_at": "2012-10-06T21:34:12.000Z",
"ignored": true,
"reason": "string",
"repository_url": "https://api.github.com/repos/octocat/example",
"subscribed": true,
"url": "https://api.github.com/repos/octocat/example/subscription"
}