Skip to main content
Remove Comment Reaction
Removes the authenticated user’s reaction from a comment. The comment’s reactionCounts map is decremented for the removed reaction type. Authentication required.

Path Parameters

string
required
The UUID of the comment to remove the reaction from.

Query Parameters

A DELETE takes no body: every field besides the path goes in the query string.
string
Service key only, and required with one: the user this request acts as, whose reaction is removed. A key has no user of its own, so leaving it out returns 400 comment/missing-user-id. A user token always acts as its own user and must not send it (400 comment/acting-user-not-allowed).

Blocks

Removing your own reaction is undoing your own action, so a block doesn’t stop it: as long as the comment is visible to you — in full, or as a placeholder — your reaction is removed. This includes a comment whose author blocked you, a comment its author deleted and a moderator-removed comment — even though neither of the last two takes new reactions. When the comment isn’t visible to you at all — it sits on an entity whose author has blocked you — the request returns 404 comment/not-found and nothing changes. The exception is your own comment on such an entity: it stays visible to you, so removing your reaction from it works.

Response

Returns the Comment as you’d see it after the change — in full, flagged with isAuthorBlocked, or as a placeholder — with the updated reactionCounts. If you had no reaction on the comment, the comment is returned unchanged.

Error Responses

Returned when the request carries a body. A DELETE takes no body: send actingUserId in the query string.
Returned when commentId isn’t a valid UUID.
Returned when a user token sends actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
Returned when the request sends userId in the query string. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials:
Returned when a service key sends no actingUserId.