diff --git a/platformio/account/client.py b/platformio/account/client.py index 366e4ad5..a898de48 100644 --- a/platformio/account/client.py +++ b/platformio/account/client.py @@ -294,7 +294,7 @@ class AccountClient(HTTPClient): # pylint:disable=too-many-public-methods return self.fetch_json_data( "delete", "/v1/orgs/%s/owners" % orgname, - data={"username": username}, + params={"username": username}, x_with_authorization=True, ) @@ -347,6 +347,6 @@ class AccountClient(HTTPClient): # pylint:disable=too-many-public-methods return self.fetch_json_data( "delete", "/v1/orgs/%s/teams/%s/members" % (orgname, teamname), - data={"username": username}, + params={"username": username}, x_with_authorization=True, )