Skip to content

Commit 1c18995

Browse files
Merge pull request #35 from Exabyte-io/fix/typo-in-owner
update: potential cause of the problem
2 parents 5c7e51d + 9a8a63b commit 1c18995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exabyte_api_client/endpoints/materials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def import_from_file(self, name, content, owner_id=None, format="poscar", tags=(
4343
Returns:
4444
dict
4545
"""
46-
data = {"name": name, "content": content, "format": format, "ownerId": owner_id, "tags": tags}
46+
data = {"name": name, "content": content, "format": format, "owner._id": owner_id, "tags": tags}
4747
return self.request("POST", "/".join((self.name, "import")), headers=self.headers, data=json.dumps(data))
4848

4949
def import_from_materialsproject(self, api_key, material_ids, owner_id=None, tags=[]):

0 commit comments

Comments
 (0)