PUT/repos/{owner}/{repo}/subscription

Set a repository subscription

If you would like to watch a repository, set 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.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters · 2 body fields
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
subscribedbooleanoptional
Determines if notifications should be received from this repository.
ignoredbooleanoptional
Determines if all notifications should be blocked from this repository.

1 status code
200Response
subscribedbooleanrequired
Determines if notifications should be received from this repository.
ignoredbooleanrequired
Determines if all notifications should be blocked from this repository.
reasonstringrequired
created_atstringrequired
urlstringrequired
repository_urlstringrequired

Was this helpful?