Skip to main content
Remove Entity Reaction
Requires the entities bundle. A project without the entities bundle returns 403 database/tables-not-available. See Bundles.
Removes the authenticated user’s reaction from an entity. The entity’s reactionCounts map is decremented for the removed reaction type. This works on an entity a moderator removed too (moderationStatus: "removed"): taking back your own reaction is always allowed, as on comments and chat messages, while adding one is refused. A draft can’t be reached. Authentication required.

Path Parameters

string
required
The UUID of the entity 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 user token always acts as its own user and must not send it (400 entity/acting-user-not-allowed).

Blocks

When the moderation bundle is installed and the entity’s author has blocked the user, the request returns 404 entity/not-found — identical to a missing entity — and nothing changes. The user’s own block on the author doesn’t stop them removing their reaction.

Reading

An entity in a space the user can no longer read (see who can read content), for example after leaving a members-only space, returns 404 entity/not-found too, and the reaction stays. A ban doesn’t stop the user removing their reaction from an entity they can still read.

Response

Returns the updated Entity object with the new reactionCounts. For an entity a moderator removed, that is its placeholder unless the user is its author.

Error Responses

The request carried a body. A DELETE takes no body: send actingUserId in the query string.
A service key sent no actingUserId.
A user token sent 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.
The request sent 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 the entity doesn’t exist or is a draft, its author has blocked the user (see Blocks), or it is in a space the user can’t read (see Reading).