Skip to content

Commit 21ded9b

Browse files
committed
docs: deprecated delecation reaction endpoints
1 parent dc10a6e commit 21ded9b

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

docs/reactions/delete.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Delete a reaction
1+
# Delete a reaction (Legacy)
2+
3+
**This method is deprecated.**
4+
5+
**Deprecated:** This method has been renamed to reactions.deleteLegacy
6+
7+
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Reactions API. We recommend migrating your existing code to use the new delete reactions endpoints. For more information, see this [blog post](https://developer.github.com/changes/2020-02-26-new-delete-reactions-endpoints/).
28

39
OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/).
410

docs/reactions/deleteLegacy.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Delete a reaction (Legacy)
2+
3+
**This method is deprecated.**
4+
5+
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Reactions API. We recommend migrating your existing code to use the new delete reactions endpoints. For more information, see this [blog post](https://developer.github.com/changes/2020-02-26-new-delete-reactions-endpoints/).
6+
7+
OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/).
8+
9+
```js
10+
octokit.reactions.deleteLegacy({
11+
reaction_id
12+
});
13+
```
14+
15+
## Parameters
16+
17+
<table>
18+
<thead>
19+
<tr>
20+
<th>name</th>
21+
<th>required</th>
22+
<th>description</th>
23+
</tr>
24+
</thead>
25+
<tbody>
26+
<tr><td>reaction_id</td><td>yes</td><td>
27+
28+
reaction_id parameter
29+
30+
</td></tr>
31+
</tbody>
32+
</table>
33+
34+
See also: [GitHub Developer Guide documentation](endpoint.documentationUrl).

0 commit comments

Comments
 (0)