diff options
author | Vitor Mattos <vitor@php.rio> | 2021-12-24 00:37:43 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-02-15 18:45:41 +0300 |
commit | 15662ed4facadb4d150cd4bada42be56c0a0da3d (patch) | |
tree | 1dd93c519de1c6439c1fb5a38bb203ed2824dbe4 /docs | |
parent | 3b30c900cbdc399cae93c2b26ad9b466179d1f82 (diff) |
Api changes to react to a message: reactions delete
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reaction.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/reaction.md b/docs/reaction.md index 54a58b75a..62c24bd5a 100644 --- a/docs/reaction.md +++ b/docs/reaction.md @@ -18,3 +18,19 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1` + `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 + +## Delete a reaction + +* Method: `DELETE` +* 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 or reaction could not be found for the participant |