diff --git a/chirpy/api.py b/chirpy/api.py index 354e98f..25d2f43 100644 --- a/chirpy/api.py +++ b/chirpy/api.py @@ -195,6 +195,9 @@ def __call__(self, **kwargs): elif method == 'POST': post_data = json.dumps(json_body) if json_body is not None else kwargs request = partial(requests.request, data=post_data) + elif method == 'PUT': + put_data = json.dumps(json_body) if json_body is not None else kwargs + request = partial(requests.request, params=kwargs, data=put_data) resp = request(method, uriBase, headers=headers, timeout=_timeout, proxies=self.proxies, auth=self.auth)