Memos unofficial
POST/api/v1/memos/{memo}/reactions

Add or update a memo reaction

Adds or updates the authenticated user's reaction on a memo. Supply the memo resource name and the reaction with its reactionType; the operation upserts the authenticated user's reaction.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter ยท 2 body fields
memostringrequired
The identifier of the memo to add or update the authenticated user's reaction on.

The memo resource name and reaction to add or update.

namestringrequired
Required. The resource name of the memo. Format: memos/{memo}
reactionobjectrequired
Required. The reaction to upsert.

2 status codes
200Returns the reaction object, including its reaction type and output fields.
namestringoptional
The resource name of the reaction. Format: memos/{memo}/reactions/{reaction}
creatorstringoptional
The resource name of the creator. Format: users/{user}
reactionTypestringrequired
Required. The type of reaction (e.g., "๐Ÿ‘", "โค๏ธ", "๐Ÿ˜„").
createTimestringoptional
Output only. The creation timestamp.
defaultDefault error response
codeintegeroptional
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
messagestringoptional
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
detailsarray<object>optional
A list of messages that carry the error details. There is a common set of message types for APIs to use.

Error handling

The memo path parameter identifies the memo to react to. The body must include name and reaction, and reaction must include reactionType.