Developer Portal for YouTrack and Hub Help

Operations with Specific Reaction

This resource lets you work with reactions to an issue comment.

Resource

/api/issues/{issueID}/comments/{commentID}/reactions/{reactionID}

Returned entity

Reaction. For the description of the entity attributes, see Supported Fields section.

Supported methods

Reaction attributes

Represents a reaction to a comment in YouTrack added by a user.

Attributes

This table describes attributes of the Reaction entity.

  • To receive an attribute in the response from the server, specify it explicitly in the fields request parameter.

  • To update an attribute, provide it in the body of a POST request.

Field

Type

Description

id

String

The ID of the reaction. Read-only.

author

User

The user who put the reaction. Can be null.

reaction

String

The string representation of the reaction. Can be null.

Read a Specific Reaction

Get a reaction with a specific ID.

Required permissions

Requires permissions: Read Issue, Read Issue Comment

Request syntax

GET /api/issues/{issueID}/comments/{commentID}/reactions/{reactionID}?{fields}

{reactionID}

The database ID of the reaction.

Request parameters

Parameter

Type

Description

fields

String

A list of Reaction attributes that should be returned in the response. If no field is specified, only the entityID is returned.

Sample

Sample request

https://example.youtrack.cloud/api/issues/NP-154/comments/4-17/reactions/334-1?fields=id,author(login),reaction

Sample response body

{ "author": { "login": "jane.doe", "$type": "User" }, "reaction": "thanks", "id": "334-0", "$type": "Reaction" }

Delete a Specific Reaction

Remove a reaction from a comment. Only the author of the reaction can remove it.

Required permissions

Requires permissions: Read Issue, Read Issue Comment. Only the author of the reaction can remove it.

Request syntax

DELETE /api/issues/{issueID}/comments/{commentID}/reactions/{reactionID}

{reactionID}

The database ID of the reaction.

Request parameters

Parameter

Type

Description

fields

String

A list of Reaction attributes that should be returned in the response. If no field is specified, only the entityID is returned.

Sample

Sample request

https://example.youtrack.cloud/api/issues/NP-154/comments/4-17/reactions/334-1
Last modified: 7 November 2024