chat.sprk.convo.addReaction

Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.

Repository @sprk.so did:plc:cveom2iroj3mt747sd4qqnr2 namespace authority
Details · procedure
Kindprocedure
Authorityconvo.sprk.chat
Indexed

Procedure

procedure · POST

Input

application/json

convoId

requiredstring

messageId

requiredstring

value

requiredstring
  • minLength: 1
  • maxLength: 64
  • minGraphemes: 1
  • maxGraphemes: 1

Output

application/json

Errors

ReactionMessageDeleted

Indicates that the message has been deleted and reactions can no longer be added/removed.

ReactionLimitReached

Indicates that the message has the maximum number of reactions allowed for a single user, and the requested reaction wasn't yet present. If it was already present, the request will not fail since it is idempotent.

ReactionInvalidValue

Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.

  • Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't.

  • Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't.

  • React to a message with a single emoji.

  • Add or remove the viewer's reaction to a message. A reaction is a record in the viewer's own repo, so this creates or deletes one — there is no shared counter to increment, and the count a client renders is the appview's tally of records it has ingested.