api_docs: Deprecate 'remove-fcm-token' & 'remove-apns-token'.

Endpoints marked deprecated:
* `DELETE /users/me/apns_device_token`
* `DELETE /users/me/android_gcm_reg_id`

These endpoints were for non-E2EE push notification case.

Fixes #35213.
This commit is contained in:
Prakhar Pratyush
2025-09-04 13:39:20 +05:30
committed by Tim Abbott
parent 6a81aba20e
commit e64be0c48b

View File

@@ -13188,11 +13188,19 @@ paths:
description: |
A typical failed JSON response for when the APNs token is invalid:
delete:
deprecated: true
operationId: remove-apns-token
summary: Remove an APNs device token
tags: ["users"]
description: |
This endpoint removes an APNs device token for iOS push notifications.
**Changes**: Deprecated in Zulip 11.0 (feature level 406) and will be
removed in a future release. Clients connecting to newer servers and
with E2EE push notifications support should delete the account record
in their local accounts table that corresponds to the `push_account_id`
supplied when registering via the [Register E2EE push device](/api/register-push-device)
endpoint, to stop displaying notifications for that registration.
requestBody:
required: true
content:
@@ -13284,11 +13292,19 @@ paths:
"code": "BAD_REQUEST",
}
delete:
deprecated: true
operationId: remove-fcm-token
summary: Remove an FCM registration token
tags: ["users"]
description: |
This endpoint removes an FCM registration token for push notifications.
**Changes**: Deprecated in Zulip 11.0 (feature level 406) and will be
removed in a future release. Clients connecting to newer servers and
with E2EE push notifications support should delete the account record
in their local accounts table that corresponds to the `push_account_id`
supplied when registering via the [Register E2EE push device](/api/register-push-device)
endpoint, to stop displaying notifications for that registration.
requestBody:
required: true
content: