PUT
/notifications/threads/{thread_id}/subscriptionSet a thread subscription
If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an @mention.
You can also use this endpoint to subscribe to threads that you are currently not receiving notifications for or to subscribed to threads that you have previously ignored.
Unsubscribing from a conversation in a repository that you are not watching is functionally equivalent to the Delete a thread subscription endpoint.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
thread_idintegerrequired
The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)).
ignoredbooleanoptional
Whether to block all notifications from a thread.
200Response
subscribedbooleanrequired
ignoredbooleanrequired
reasonstringrequired
created_atstringrequired
urlstringrequired
thread_urlstringoptional
repository_urlstringoptional
304Not modified
401Requires authentication
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 401 is returned: Requires authentication. A 403 is returned: Forbidden.