Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
samyukta0731 opened this issue Apr 15, 2024 · 1 comment

Comments

@samyukta0731
Copy link

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
Copy link
Contributor

Hi @samyukta0731 I have made these changes with PR #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants