Commit b8265eda authored by Jo Sama's avatar Jo Sama 😱
Browse files

update_operator() is a put, not a patch

parent ae23571c
......@@ -251,9 +251,9 @@ class TopDeskClient:
# TODO: Remove password setting when proper auth arrives
op = operator.copy()
op.password = uuid.uuid4()
r = self.patch(url,
return_response=True,
data=op.json())
r = self.put(url,
return_response=True,
data=op.json())
if r.status_code == 200:
return Operator.from_dict(r.json())
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment