ringcentral / ringcentral-python

RingCentral Connect Platform Python SDK
MIT License
45 stars 35 forks source link

400 error trying to delete extesnion. This Delete Extension requires a body. #81

Open samyukta0731 opened 5 months ago

samyukta0731 commented 5 months ago

Please allow Python SDK to have body the delete extension API endpoint

Current behavior : this is not working, throws a 400 error, because usually delete does not have a body, but in this case it;s required cos that's how it is in the documentation

try: endpoint = "/restapi/v2/accounts/~/extensions" body = { "keepAssetsInInventory": True, "records": [{"id": "63581676004"}] }

res = platform.delete(endpoint, body)

SushilMallRC commented 4 months ago

Hi @samyukta0731 I have made these changes with PR https://github.com/ringcentral/ringcentral-python/pull/86