Set a repository subscription

PUT {{baseUrl}}/repos/:owner/:repo/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.

Request Body

{"subscribed"=>"<boolean>", "ignored"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;subscribed&quot;:true,&quot;ignored&quot;:false,&quot;reason&quot;:null,&quot;created_at&quot;:&quot;2012-10-06T21:34:12Z&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/example/subscription&quot;,&quot;repository_url&quot;:&quot;https://api.github.com/repos/octocat/example&quot;}