Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
documentation_api: Deduplicate ignored_parameters_unsupported.
Lauryn Menard0d0b4eb9d4ba
diff --git a/templates/zerver/help/include/rest-endpoints.md b/templates/zerver/help/include/rest-endpoints.mdindex 2e51415949e..a2c13868ce2 100644--- a/templates/zerver/help/include/rest-endpoints.md+++ b/templates/zerver/help/include/rest-endpoints.md@@ -77,7 +77,7 @@* [Get all custom profile fields](/api/get-custom-profile-fields)* [Reorder custom profile fields](/api/reorder-custom-profile-fields)* [Create a custom profile field](/api/create-custom-profile-field)-* [Change default values of user preferences](/api/update-realm-user-settings-defaults)+* [Update realm-level defaults of user settings](/api/update-realm-user-settings-defaults)#### Real-time eventsdiff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 66845c33d49..1d99aeda112 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -7550,7 +7550,7 @@ paths:/realm/user_settings_defaults:patch:operationId: update-realm-user-settings-defaults- summary: Update realm-level defaults of user settings.+ summary: Update realm-level defaults of user settingstags: ["server_and_organizations"]x-requires-administrator: truedescription: |@@ -7908,16 +7908,7 @@ paths:result: {}msg: {}ignored_parameters_unsupported:- type: array- items:- type: string- description: |- This field lists any parameters sent in the request that are not- supported by the endpoint. While this can be expected, e.g. when sending- both current and legacy names for a parameter to a Zulip server of- unknown version, this often indicates a bug in the client- implementation or an attempt to configure a new feature, while- connected to an older Zulip server that does not support the feature.+ $ref: "#/components/schemas/IgnoredParametersUnsupported"example:{"ignored_parameters_unsupported":@@ -12004,18 +11995,32 @@ paths:endpoint only supported the `full_name`, `email`,`old_password`, and `new_password` parameters. Notificationsettings were managed by `PATCH /settings/notifications`, and- all other settings by `PATCH /settings/display`. The feature level- 80 migration to merge these endpoints did not change how request- parameters are encoded. Note, however, that it did change the- handling of any invalid parameters present in a request to change- notification or display settings, since the merged endpoint uses- the new response format that was introduced for `/settings` in- Zulip 5.0 (feature level 78).+ all other settings by `PATCH /settings/display`.++ The feature level 80 migration to merge these endpoints did not+ change how request parameters are encoded. However, it did change+ the handling of any invalid parameters present in a request+ (see feature level 78 change below).The `/settings/display` and `/settings/notifications`endpoints are now deprecated aliases for this endpoint forbackwards-compatibility, and will be removed once clients havemigrated to use this endpoint.++ **Changes**: New in Zulip 5.0 (feature level 78). Previously,+ the `/settings` endpoint indicated which parameters it had+ processed by including in the response object `"key": value`+ entries for values successfully changed by the request. Now the+ `/settings` endpoint indicates which parameters sent with the+ request were not supported by this endpoint (see+ `ignored_parameters_unsupported` below).++ The `/settings/notifications` and `/settings/display` endpoints+ also had this behavior before they became aliases of `/settings`+ in Zulip 5.0 (see feature level 80 change above).++ Before these changes, request parameters that were not supported+ (or were unchanged) were silently ignored.x-curl-examples-parameters:oneOf:- type: include@@ -12530,28 +12535,7 @@ paths:result: {}msg: {}ignored_parameters_unsupported:- type: array- items:- type: string- description: |- This field lists any parameters sent in the request that are not- supported by the endpoint. While this can be expected, e.g. when sending- both current and legacy names for a parameter to a Zulip server of- unknown version, this often indicates a bug in the client- implementation or an attempt to configure a new feature, while- connected to an older Zulip server that does not support the feature.-- **Changes**: New in Zulip 5.0 (feature level 78). Previously,- the `/settings` endpoint indicated which parameters it had- processed by including in the response object `"key": value`- entries for values successfully changed by the request.-- The `/settings/notifications` and `/settings/display` endpoints- also had this behavior before they became aliases of `/settings`- in Zulip 5.0 (feature level 80).-- Before those changes, request parameters that were not supported- or were unchanged were silently ignored.+ $ref: "#/components/schemas/IgnoredParametersUnsupported"example:{"ignored_parameters_unsupported": ["name", "password"],@@ -13570,6 +13554,19 @@ components:`/fetch_api_key` or `/dev_fetch_api_key` endpoints.schemas:+ IgnoredParametersUnsupported:+ type: array+ items:+ type: string+ description: |+ An array of any parameters sent in the request that are not+ supported by the endpoint. While this can be expected, e.g. when sending+ both current and legacy names for a parameter to a Zulip server of+ unknown version, this often indicates either a bug in the client+ implementation or an attempt to configure a new feature while+ connected to an older Zulip server that does not support said feature.++ **Changes**: New in Zulip 5.0 (feature level 78)EventIdSchema:type: integerdescription: |