Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit9a59a71

Browse files
committed
tweak the settings endpoints
1 parent38b598d commit9a59a71

File tree

1 file changed

+49
-17
lines changed

1 file changed

+49
-17
lines changed

‎content/v3/activity/notifications.md‎

Lines changed: 49 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,36 +60,42 @@ directly participating or mentioned.
6060
Marking a notification as "read" archives it removes it from the[default view
6161
on GitHub.com](https://github.com/notifications).
6262

63-
POST /notifications/mark_as_read
64-
65-
###Parameters
66-
67-
ids
68-
:_Optional_**Array(Number)** IDs of notifications to mark as read. If this
69-
parameter is omitted, all notifications will be marked as read.
63+
POST /notifications/mark
7064

7165
##Mark notifications as read in a repository
7266

7367
Marking all notification in a repository as "read" archives them removes them
7468
from the[default view on GitHub.com](https://github.com/notifications).
7569

76-
POST /repos/:owner/:repo/notifications/mark_as_read
70+
POST /repos/:owner/:repo/notifications/mark
71+
72+
##View a single summary
73+
74+
GET /notifications/summaries/:id
75+
76+
##Mark a summary as read
77+
78+
POST /notifications/summaries/:id/mark
7779

78-
##Mute athread
80+
##Mute asummary
7981

8082
Muting a thread prevents future notifications from being sent for a discussion
81-
thread.
83+
summary.
8284

83-
POST /notifications/threads/:id/mute
85+
POST /notifications/summaries/:id/mute
8486

85-
##Unmute athread
87+
##Unmute asummary
8688

8789
Muting a thread enables future notifications from being sent for a discussion
88-
thread.
90+
summary.
8991

90-
POST /notifications/threads/:id/unmute
92+
POST /notifications/summaries/:id/unmute
9193

92-
##Settings
94+
##View Settings
95+
96+
GET /notifications/settings
97+
98+
##Update Settings
9399

94100
Update the notification settings for the authenticated user.
95101

@@ -117,11 +123,37 @@ web.
117123
:participating => {:email => true,:web => false},
118124
:watching => {:email => true,:web => false} %>
119125

120-
##Organization email address settings
126+
##Get notification email settings
127+
128+
GET /notifications/emails
129+
130+
##Get the global email settings
131+
132+
GET /notifications/global/emails
133+
134+
##Get notification email settings for an organization
135+
136+
GET /notifications/organization/:org/emails
137+
138+
##Update email settings
139+
140+
PATCH /notifications/emails
141+
142+
##Update global email settings
143+
144+
PUT /notifications/global/emails
145+
146+
###Parameters
147+
148+
email
149+
:_Required_**string** Email address to which to send notifications to the
150+
authenticated user for discussions related to projects for this organization.
151+
152+
##Update Organization email settings
121153

122154
Update the notification settings for the authenticated user.
123155

124-
PATCH /orgs/:org/notifications/settings
156+
PUT /notifications/organization/:org/emails
125157

126158
###Parameters
127159

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp