Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
jobs:

run-linter:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10.13]
Expand All @@ -33,7 +33,7 @@ jobs:
python-version: ${{ matrix.python-version }}

run-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10.13]
Expand Down
6 changes: 4 additions & 2 deletions exabyte_api_client/endpoints/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,20 @@ def delete(self, id_):
"""
return self.request("DELETE", "/".join((self.name, id_)), headers=self.headers)

def update(self, id_, modifier):
def update(self, id_, modifier, parameters=None):
"""
Updates a entity with given ID.

Args:
id_ (str): entity ID.
modifier (dict): a dictionary of key-values to update entity with.
parameters (dict): additional request parameters.

Returns:
dict: updated entity.
"""
return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), headers=self.headers)
return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), headers=self.headers,
params=parameters)

def create(self, config, owner_id=None):
"""
Expand Down
Loading