benchling-api icon indicating copy to clipboard operation
benchling-api copied to clipboard

Create folders

Open shenker opened this issue 3 years ago • 0 comments

It would be useful if you could create and update new folders (and even projects).

Right now I'm using the following monkey-patch, and it seems to work.

benchlingapi.models.Folder.CREATE_SCHEMA = dict(
    only=("id", "name", "parent_folder_id", "project_id", "archive_record")
)
benchlingapi.models.Folder.__bases__ = (
    benchlingapi.models.mixins.CreateMixin,
) + benchlingapi.models.Folder.__bases__

shenker avatar Feb 08 '21 01:02 shenker