diff --git a/pydundas/rest/cube.py b/pydundas/rest/cube.py index 90e37f1..23eabcc 100644 --- a/pydundas/rest/cube.py +++ b/pydundas/rest/cube.py @@ -92,6 +92,10 @@ def warehouse(self): """Triggers a warehousing.""" self.api.session.post('datacube/warehouse/' + self.id, json={}) + def buildstorage(self): + """Triggers a 'Build Warehouse' event""" + self.api.session.post('datacube/buildstorage/' + self.id, json={}) + def json(self): """Return proper JSONised data.""" return json.dumps(self.data)