Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api docs: Document idempotency of DELETE /users/me/avatar.
Agnish Baurif77c7655fd6f
diff --git a/api_docs/changelog.md b/api_docs/changelog.mdindex d6ea039fe8b..2e15f94538a 100644--- a/api_docs/changelog.md+++ b/api_docs/changelog.md@@ -552,6 +552,10 @@ element to plain escaped text.* [`PATCH /messages/{message_id}`](/api/update-message): The `create_time` and`date_sent` fields in `detached_uploads` object will now return UNIX timestampsin seconds. Previously, these values were returned in milliseconds.+* [`DELETE /users/me/avatar`](/api/delete-avatar): This endpoint is now+ idempotent. Previously, calling it when the current user had not+ uploaded a custom profile picture would still increment their avatar+ version and send a redundant user update event to clients.**Feature level 442**diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex f44e8d54e50..26189b8bb30 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -16185,6 +16185,12 @@ paths:In organizations that[restrict profile picture changes](/help/restrict-profile-picture-changes),only administrators can use this endpoint.++ **Changes**: Prior to Zulip 12.0 (feature level 443), this endpoint+ was not idempotent; calling it when the current user had not+ uploaded a custom profile picture would still increment their+ avatar version and send a redundant user update event to+ clients.responses:"200":description: Success.