SpyREST

Supported by Mashape

Home » api.github.com Versions » v3 Resources » Notifications » PUT /notifications/threads/{:thread-id}/subscription

PUT /notifications/threads/{:thread-id}/subscription

Description

Response Fields

Name Type Description
subscribed Boolean
ignored Boolean
reason String
created_at String (Time ISO8601)
url String
thread_url String
Write
Preview

Examples

Set a Thread Subscription

Set a Thread Subscription

Recorded at

2015-05-14 18:20:42 UTC

Try with cURL

Request URL

Requires Authorization
PUT /notifications/threads/35582591/subscription      

Request Headers

content-length: 2
authorization: FILTERED
content-type: application/json
accept: application/vnd.github.v3+json
user-agent: curl/7.37.1
      

Request Body

{}
      

Response Headers

transfer-encoding: chunked
x-served-by: cee4c0729c8e9147e7abcb45b9d69689
x-content-type-options: nosniff
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-github-request-id: 68EC8CA8:5DAB:6B5E67:5554E77A
access-control-allow-origin: *
access-control-expose-headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
access-control-allow-credentials: true
content-security-policy: default-src 'none'
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-media-type: github.v3; format=json
vary: Accept, Authorization, Cookie, X-GitHub-OTP
x-accepted-oauth-scopes: notifications, repo
x-oauth-scopes: admin:org, admin:public_key, delete_repo, gist, notifications, repo, user, write:repo_hook
etag: "928e663804910ab042c4b3ba00680bd2"
cache-control: private, max-age=60, s-maxage=60
x-ratelimit-reset: 1431630723
x-ratelimit-remaining: 4969
x-ratelimit-limit: 5000
status: 200 OK
connection: close
content-length: 259
content-type: application/json; charset=utf-8
date: Thu, 14 May 2015 18:20:43 GMT
server: GitHub.com
      

Response Body

Shortened for readability

{
  "subscribed": true,
  "ignored": false,
  "reason": "manual",
  "created_at": "2015-05-14T18:15:32Z",
  "url": "https://api.github.com/notifications/threads/35582591/subscription",
  "thread_url": "https://api.github.com/notifications/threads/35582591"
}