diff options
author | Vitor Mattos <vitor@php.rio> | 2021-12-16 08:20:35 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-02-15 12:45:40 -0300 |
commit | 3b30c900cbdc399cae93c2b26ad9b466179d1f82 (patch) | |
tree | 533e8ce216b32d74a84a94ee9027cffe2fa613b3 /docs/reaction.md | |
parent | 213d9ea9621133167a63f87f4fb7b784c1321090 (diff) |
Api changes to react to a message: reactions add
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'docs/reaction.md')
-rw-r--r-- | docs/reaction.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/reaction.md b/docs/reaction.md new file mode 100644 index 000000000..54a58b75a --- /dev/null +++ b/docs/reaction.md @@ -0,0 +1,20 @@ +# Reaction API + +Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1` + +## React to a message + +* Method: `POST` +* Endpoint: `/chat/{token}/{messageId}` +* Data: + + field | type | Description + ---|---|--- + `reaction` | string | the reaction emoji + +* Response: + - Status code: + + `201 Created` + + `400 Bad Request` In case of any other error + + `404 Not Found` When the conversation or message to react could not be found for the participant + + `409 Conflict` User already did this reaction to this message |