Closed fabbra closed 4 years ago
Creating a subcollection as described in the docs fails with the following error message:
'code': 400, 'message': "'parent' property is now 'parentCollection'"
In the dict passed as the first input parameter to create_collections() one must use the key parentCollection and not parent.
parentCollection
parent
I guess the docs should be updated accordingly.
Code example that fails:
zot = zotero.Zotero(library_id, library_type, api_key) result = zot.create_collections([{'parent': parent_id, 'name': 'test'}])
Code example that runs successfully:
zot = zotero.Zotero(library_id, library_type, api_key) result = zot.create_collections([{'parentCollection': parent_id, 'name': 'test'}])
Thanks!
Creating a subcollection as described in the docs fails with the following error message:
In the dict passed as the first input parameter to create_collections() one must use the key
parentCollection
and notparent
.I guess the docs should be updated accordingly.
Code example that fails:
Code example that runs successfully: