@@ -23,8 +23,8 @@ user is involved including:
2323* Commits the user authors or commits
2424* Any discussion in which the user actively participates
2525
26- Notifications come back asSummary objects . ASummary contains information
27- about the current discussion of an Issue/PullRequest/Commit.
26+ Notifications come back as"threads" . AThread contains information about the
27+ current discussion of an Issue/PullRequest/Commit.
2828
2929Notifications are optimized for polling with the "Last-Modified" header. If
3030there are no new notifications, you will see a "304 Not Modified" response,
@@ -67,7 +67,7 @@ time. The time should be passed in as UTC in the ISO 8601 format:
6767###Response
6868
6969<%= headers 200 %>
70- <%= json(: summary ) { |h|[ h] } %>
70+ <%= json(: thread ) { |h|[ h] } %>
7171
7272##List your notifications in a repository
7373
@@ -84,17 +84,35 @@ participating
8484:_ Optional_ ** boolean** ` true ` to show only notifications in which the user is
8585directly participating or mentioned.
8686
87+ since
88+ :_ Optional_ ** time** filters out any notifications updated before the given
89+ time. The time should be passed in as UTC in the ISO 8601 format:
90+ ` YYYY-MM-DDTHH:MM:SSZ ` . Example: "2012-10-09T23:39:01Z".
91+
8792###Response
8893
8994<%= headers 200 %>
90- <%= json(: summary ) { |h|[ h] } %>
95+ <%= json(: thread ) { |h|[ h] } %>
9196
9297##Mark as read
9398
9499Marking a notification as "read" removes it from the[ default view
95100on GitHub.com] ( https://github.com/notifications ) .
96101
97- POST /notifications/mark
102+ PUT /notifications
103+
104+ ###Input
105+
106+ unread
107+ :** Boolean** Changes the unread status of the threads.
108+
109+ read
110+ :** Boolean** Inverse of "unread".
111+
112+ last_read_at
113+ :_ Optional_ ** Time** Describes the last point that notifications were checked. Anything
114+ updated since this time will not be updated. Default: Now. Expected in ISO
115+ 8601 format:` YYYY-MM-DDTHH:MM:SSZ ` . Example: "2012-10-09T23:39:01Z".
98116
99117###Response
100118
@@ -105,49 +123,70 @@ on GitHub.com](https://github.com/notifications).
105123Marking all notifications in a repository as "read" removes them
106124from the[ default view on GitHub.com] ( https://github.com/notifications ) .
107125
108- POST /repos/:owner/:repo/notifications/mark
126+ PUT /repos/:owner/:repo/notifications
127+
128+ ###Input
129+
130+ unread
131+ :** Boolean** Changes the unread status of the threads.
132+
133+ read
134+ :** Boolean** Inverse of "unread".
135+
136+ last_read_at
137+ :_ Optional_ ** Time** Describes the last point that notifications were checked. Anything
138+ updated since this time will not be updated. Default: Now. Expected in ISO
139+ 8601 format:` YYYY-MM-DDTHH:MM:SSZ ` . Example: "2012-10-09T23:39:01Z".
109140
110141###Response
111142
112143<%= headers 205 %>
113144
114- ##View a singlesummary
145+ ##View a singlethread
115146
116- GET /notifications/summaries /:id
147+ GET /notifications/threads /:id
117148
118149###Response
119150
120151<%= headers 200 %>
121- <%= json(: summary ) { |h|[ h] } %>
152+ <%= json(: thread ) { |h|[ h] } %>
153+
154+ ##Mark a thread as read
155+
156+ PATCH /notifications/threads/:id
157+
158+ ###Input
122159
123- ##Mark a summary as read
160+ unread
161+ :** Boolean** Changes the unread status of the threads.
124162
125- POST /notifications/summaries/:id/mark
163+ read
164+ :** Boolean** Inverse of "unread".
126165
127166###Response
128167
129168<%= headers 205 %>
130169
131- ##Get aSummary Subscription
170+ ##Get aThread Subscription
132171
133- This checks to see if the current user is subscribed to asummary . You can also
172+ This checks to see if the current user is subscribed to athread . You can also
134173[ get a Repository subscription] ( http://localhost:3000/v3/activity/watching/#get-a-repository-subscription ) .
135174
136- GET /notifications/summary /1/subscription
175+ GET /notifications/threads /1/subscription
137176
138177###Response
139178
140179<%= headers 200 %>
141180<%= json: subscription %>
142181
143- ##Set aSummary Subscription
182+ ##Set aThread Subscription
144183
145- This lets you subscribe to asummary , or ignore it. Subscribing to asummary
184+ This lets you subscribe to athread , or ignore it. Subscribing to athread
146185is unnecessary if the user is already subscribed to the repository. Ignoring
147- asummary will mute all future notifications (until you comment or get
186+ athread will mute all future notifications (until you comment or get
148187@mentioned ).
149188
150- PUT /notifications/summary /1/subscription
189+ PUT /notifications/threads /1/subscription
151190
152191###Input
153192
@@ -164,9 +203,9 @@ repository.
164203<%= headers 200 %>
165204<%= json: subscription %>
166205
167- ##Delete aSummary Subscription
206+ ##Delete aThread Subscription
168207
169- DELETE /notifications/summary /1/subscription
208+ DELETE /notifications/threads /1/subscription
170209
171210###Response
172211