From 9b4ff0156f966df78de50342a1338c66f1e29644 Mon Sep 17 00:00:00 2001 From: SushilMallRC Date: Mon, 8 Dec 2025 13:13:58 +0530 Subject: [PATCH 1/2] Update Readme for Delete method params change --- CHANGELOG.md | 16 ++++++++++++++++ sdk/README.md | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40fc39e0..495da650 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,22 @@ This document contains only major functionality changes in certain versions. Min - Deprecate Pubnub subscriptions, and move to "@ringcentral/subscription-deprecated" package for Pubnub subscriptions - The password grant flow has been deprecated. +### ⚠️ Breaking Changes + +- **`delete` method signature changed**: The `delete` method now supports body params. The signature changed from `delete(url, query)` to `delete(url, body, query)`. If you were passing query parameters as the second argument, you need to update your code: + + Before: + ```js + rcsdk.delete('/restapi/v1.0/account/~/extension/~', {...query}); + ``` + + After: + ```js + rcsdk.delete('/restapi/v1.0/account/~/extension/~', null, {...query}); + // or with body: + rcsdk.delete('/restapi/v1.0/account/~/extension/~', {...body}, {...query}); + ``` + ## 4.0 - SDK will not add `/restapi/v1.0` to URLs diff --git a/sdk/README.md b/sdk/README.md index 539c55ea..8767b391 100644 --- a/sdk/README.md +++ b/sdk/README.md @@ -412,7 +412,7 @@ rcsdk.get('/restapi/v1.0/account/~/extension/~', {...query}).then(...); rcsdk.post('/restapi/v1.0/account/~/extension/~', {...body}, {...query}).then(...); rcsdk.put('/restapi/v1.0/account/~/extension/~', {...body}, {...query}).then(...); rcsdk.patch('/restapi/v1.0/account/~/extension/~', {...body}, {...query}).then(...); -rcsdk.delete('/restapi/v1.0/account/~/extension/~', {...query}).then(...); +rcsdk.delete('/restapi/v1.0/account/~/extension/~', {...body}, {...query}).then(...); ``` ## Available API response methods From 3bf04c36d2edd729e8a1af7401e419828c2d36b9 Mon Sep 17 00:00:00 2001 From: SushilMallRC Date: Mon, 8 Dec 2025 13:23:07 +0530 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 495da650..68cb759e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ This document contains only major functionality changes in certain versions. Min - Refactor subscriptions package with WebSocket transport - Deprecate Pubnub subscriptions, and move to "@ringcentral/subscription-deprecated" package for Pubnub subscriptions - The password grant flow has been deprecated. +- Refresh token when an empty access token is passed in the request +- Added body parameter support to the `delete` method ### ⚠️ Breaking Changes