Generic web API should accept data kwarg for PATCH

This commit is contained in:
Lance Edgar 2023-09-19 08:01:08 -05:00
parent 493c32492c
commit 76df34cf72

View file

@ -100,11 +100,11 @@ class GenericWebAPI:
"""
return self._request('POST', api_method, params=params, data=data)
def patch(self, api_method, params=None):
def patch(self, api_method, params=None, data=None):
"""
Perform a PATCH request for the given API method, and return the response.
"""
return self._request('PATCH', api_method, params=params)
return self._request('PATCH', api_method, params=params, data=data)
def delete(self, api_method, params=None):
"""