DocumentationAPI reference

Rust · 0.1.0

Reaction

Application protocol schema. Field names and inherited descriptions are kept in their original language.

Where this schema is used

These links are derived from direct references in the protocol snapshot. Follow the calling operation for authentication, accepted fields and runtime behavior; a reusable resource schema is not by itself a complete write request.

Referenced by these component schemas:

Shape and fields

object

Reaction is a reaction attached to a memo.

FieldType / requirementDescription
namestringThe resource name of the reaction. Format: memos/{memo}/reactions/{reaction}
creatorstringThe resource name of the creator. Format: users/{user}
reactionTypestring
Required
Required. The type of reaction (e.g., "👍", "❤️", "😄").
createTimestring (date-time)Output only. The creation timestamp.

Complete schema

Use this complete JSON definition for constraints and nested structure. A field's presence here does not mean it is writable by every caller.

{
  "required": [
    "reactionType"
  ],
  "type": "object",
  "properties": {
    "name": {
      "readOnly": true,
      "type": "string",
      "description": "The resource name of the reaction.\n Format: memos/{memo}/reactions/{reaction}"
    },
    "creator": {
      "readOnly": true,
      "type": "string",
      "description": "The resource name of the creator.\n Format: users/{user}"
    },
    "reactionType": {
      "type": "string",
      "description": "Required. The type of reaction (e.g., \"👍\", \"❤️\", \"😄\")."
    },
    "createTime": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. The creation timestamp.",
      "format": "date-time"
    }
  },
  "description": "Reaction is a reaction attached to a memo."
}