refactor: update cleanup_webapp method to use params instead of json for DELETE request

This commit is contained in:
GareArc 2025-12-25 22:27:40 -08:00
parent 780f969121
commit 98ecc0a4eb
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -104,11 +104,11 @@ class EnterpriseService:
response = EnterpriseRequest.send_request("POST", "/webapp/access-mode", json=data)
return response.get("result", False)
@classmethod
def cleanup_webapp(cls, app_id: str):
if not app_id:
raise ValueError("app_id must be provided.")
body = {"appId": app_id}
EnterpriseRequest.send_request("DELETE", "/webapp/clean", json=body)
params = {"appId": app_id}
EnterpriseRequest.send_request("DELETE", "/webapp/clean", params=params)