Skip to content

Commit d0c0483

Browse files
committed
update: pass params in update
1 parent 1c18995 commit d0c0483

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

exabyte_api_client/endpoints/entity.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,19 @@ def delete(self, id_):
6363
"""
6464
return self.request("DELETE", "/".join((self.name, id_)), headers=self.headers)
6565

66-
def update(self, id_, modifier):
66+
def update(self, id_, modifier, parameters=None):
6767
"""
6868
Updates a entity with given ID.
6969
7070
Args:
7171
id_ (str): entity ID.
7272
modifier (dict): a dictionary of key-values to update entity with.
73+
parameters (dict): additional request parameters.
7374
7475
Returns:
7576
dict: updated entity.
7677
"""
77-
return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), headers=self.headers)
78+
return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), params=parameters, headers=self.headers)
7879

7980
def create(self, config, owner_id=None):
8081
"""

0 commit comments

Comments
 (0)