atproto blogging
at main 65 lines 2.0 kB view raw
1{ 2 "lexicon": 1, 3 "id": "chat.bsky.convo.addReaction", 4 "defs": { 5 "main": { 6 "type": "procedure", 7 "description": "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.", 8 "input": { 9 "encoding": "application/json", 10 "schema": { 11 "type": "object", 12 "required": [ 13 "convoId", 14 "messageId", 15 "value" 16 ], 17 "properties": { 18 "convoId": { 19 "type": "string" 20 }, 21 "messageId": { 22 "type": "string" 23 }, 24 "value": { 25 "type": "string", 26 "minLength": 1, 27 "maxLength": 64, 28 "minGraphemes": 1, 29 "maxGraphemes": 1 30 } 31 } 32 } 33 }, 34 "output": { 35 "encoding": "application/json", 36 "schema": { 37 "type": "object", 38 "required": [ 39 "message" 40 ], 41 "properties": { 42 "message": { 43 "type": "ref", 44 "ref": "chat.bsky.convo.defs#messageView" 45 } 46 } 47 } 48 }, 49 "errors": [ 50 { 51 "description": "Indicates that the message has been deleted and reactions can no longer be added/removed.", 52 "name": "ReactionMessageDeleted" 53 }, 54 { 55 "description": "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.", 56 "name": "ReactionLimitReached" 57 }, 58 { 59 "description": "Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.", 60 "name": "ReactionInvalidValue" 61 } 62 ] 63 } 64 } 65}