Skip to content

Add an emoji reaction to a snippet comment

POST
/api/v4/projects/{id}/snippets/{snippet_id}/notes/{note_id}/award_emoji

Adds an emoji reaction to a comment on a snippet.

id
required
One of:
string

The ID or URL-encoded path of the project

Example
1
snippet_id
required
integer

The ID of a project snippet

note_id
required
Media type application/json
object
name
required

Name of the emoji without colons.

string
nullable
Example generated
{
"name": "example"
}

Created

Media type application/json
object
id
integer format: int64
name
string
user
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
created_at
string format: date-time
updated_at
string format: date-time
awardable_id
integer format: int64
awardable_type
string
url
string
Example
{
"id": 1,
"name": "lizard",
"user": {
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root"
},
"created_at": "2019-01-10T13:39:08Z",
"updated_at": "2020-06-28T10:52:04Z",
"awardable_id": 42,
"awardable_type": "Issue",
"url": "https://example.com/emojis/example.gif"
}

Bad Request

Not Found