@@ -31,7 +31,7 @@ Parameters:
31
31
| Attribute | Type | Required | Description |
32
32
| :---------------| :---------------| :---------| :-----------------------------------------------------------------------------|
33
33
| ` id ` | integer/string | yes | ID or [ URL-encoded path of the project] ( README.md#namespaced-path-encoding ) . |
34
- | ` awardable_id ` | integer | yes | ID (` iid ` for merge requests/issues, ` id ` for snippets) of an awardable. |
34
+ | ` issue_iid ` / ` merge_request_iid ` / ` snippet_id ` | integer | yes | ID (` iid ` for merge requests/issues, ` id ` for snippets) of an awardable. |
35
35
36
36
Example request:
37
37
@@ -93,7 +93,7 @@ Parameters:
93
93
| Attribute | Type | Required | Description |
94
94
| :---------------| :---------------| :---------| :-----------------------------------------------------------------------------|
95
95
| ` id ` | integer/string | yes | ID or [ URL-encoded path of the project] ( README.md#namespaced-path-encoding ) . |
96
- | ` awardable_id ` | integer | yes | ID (` iid ` for merge requests/issues, ` id ` for snippets) of an awardable. |
96
+ | ` issue_iid ` / ` merge_request_iid ` / ` snippet_id ` | integer | yes | ID (` iid ` for merge requests/issues, ` id ` for snippets) of an awardable. |
97
97
| ` award_id ` | integer | yes | ID of the award emoji. |
98
98
99
99
Example request:
@@ -138,7 +138,7 @@ Parameters:
138
138
| Attribute | Type | Required | Description |
139
139
| :---------------| :---------------| :---------| :-----------------------------------------------------------------------------|
140
140
| ` id ` | integer/string | yes | ID or [ URL-encoded path of the project] ( README.md#namespaced-path-encoding ) . |
141
- | ` awardable_id ` | integer | yes | ID (` iid ` for merge requests/issues, ` id ` for snippets) of an awardable. |
141
+ | ` issue_iid ` / ` merge_request_iid ` / ` snippet_id ` | integer | yes | ID (` iid ` for merge requests/issues, ` id ` for snippets) of an awardable. |
142
142
| ` name ` | string | yes | Name of the emoji without colons. |
143
143
144
144
``` sh
@@ -184,7 +184,7 @@ Parameters:
184
184
| Attribute | Type | Required | Description |
185
185
| :---------------| :---------------| :---------| :-----------------------------------------------------------------------------|
186
186
| ` id ` | integer/string | yes | ID or [ URL-encoded path of the project] ( README.md#namespaced-path-encoding ) . |
187
- | ` awardable_id ` | integer | yes | ID (` iid ` for merge requests/issues, ` id ` for snippets) of an awardable. |
187
+ | ` issue_iid ` / ` merge_request_iid ` / ` snippet_id ` | integer | yes | ID (` iid ` for merge requests/issues, ` id ` for snippets) of an awardable. |
188
188
| ` award_id ` | integer | yes | ID of an award emoji. |
189
189
190
190
``` sh
@@ -197,7 +197,8 @@ Comments (also known as notes) are a sub-resource of issues, merge requests, and
197
197
198
198
NOTE: ** Note:**
199
199
The examples below describe working with award emoji on comments for an issue, but can be
200
- easily adapted for comments on a merge request.
200
+ easily adapted for comments on a merge request or on a snippet. Therefore, you have to replace
201
+ ` issue_iid ` either with ` merge_request_iid ` or with the ` snippet_id ` .
201
202
202
203
### List a comment's award emoji
203
204
0 commit comments