Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api-changelog: Add entry for feature level 193 updates.
Lauryn Menard072a62d5b5cd
diff --git a/api_docs/changelog.md b/api_docs/changelog.mdindex f50a3b03e0a..ed240cdf5de 100644--- a/api_docs/changelog.md+++ b/api_docs/changelog.md@@ -20,6 +20,16 @@ format used by the Zulip server that they are interacting with.## Changes in Zulip 8.0+**Feature level 193**++* [`POST /messages/{message_id}/reactions`](/api/add-reaction),+ [`DELETE /messages/{message_id}/reactions`](/api/remove-reaction):+ Endpoints return specific error responses if an emoji reaction+ already exists when adding a reaction (`"code": "REACTION_ALREADY_EXISTS"`)+ or if an emoji reaction does not exist when deleting a reaction+ (`"code": "REACTION_DOES_NOT_EXIST"`). Previously, these errors+ returned the `"BAD_REQUEST"` code.+**Feature level 192*** [`GET /events`](/api/get-events): Stream creation events are nowdiff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex d710c07ae53..7194456c94a 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -6680,17 +6680,30 @@ paths:content:application/json:schema:- allOf:- - $ref: "#/components/schemas/CodedError"- - example:- {- "result": "error",- "msg": "Invalid emoji code",- "code": "BAD_REQUEST",- }- description: |- An example JSON error response for when the emoji code is invalid:+ oneOf:+ - allOf:+ - $ref: "#/components/schemas/CodedError"+ - example:+ {+ "result": "error",+ "msg": "Invalid emoji code",+ "code": "BAD_REQUEST",+ }+ description: |+ An example JSON error response for when the emoji code is invalid:+ - allOf:+ - $ref: "#/components/schemas/CodedError"+ - example:+ {+ "result": "error",+ "msg": "Reaction already exists.",+ "code": "REACTION_ALREADY_EXISTS",+ }+ description: |+ An example JSON error response for when the reaction already exists.+ **Changes**: New in Zulip 8.0 (feature level 193). Previously, this+ error returned the `"BAD_REQUEST"` code.delete:operationId: remove-reactionsummary: Remove an emoji reaction@@ -6729,16 +6742,30 @@ paths:content:application/json:schema:- allOf:- - $ref: "#/components/schemas/CodedError"- - example:- {- "result": "error",- "msg": "Invalid message(s)",- "code": "BAD_REQUEST",- }- description: |- An example JSON error response for when the emoji code is invalid:+ oneOf:+ - allOf:+ - $ref: "#/components/schemas/CodedError"+ - example:+ {+ "result": "error",+ "msg": "Invalid emoji code",+ "code": "BAD_REQUEST",+ }+ description: |+ An example JSON error response for when the emoji code is invalid:+ - allOf:+ - $ref: "#/components/schemas/CodedError"+ - example:+ {+ "result": "error",+ "msg": "Reaction doesn't exist.",+ "code": "REACTION_DOES_NOT_EXIST",+ }+ description: |+ An example JSON error response for when the reaction does not exist.++ **Changes**: New in Zulip 8.0 (feature level 193). Previously, this+ error returned the `"BAD_REQUEST"` code./messages/{message_id}/read_receipts:get: