Closed ml-evs closed 3 days ago
Right now, we have a PATCH route for /collections that updates the metadata of a given collection.
PATCH
/collections
We should add a streamlined way of adding a list of items to a collection. This could be a new route:
POST /collections/<collection_id> {"data": {"refcodes": ["ABCDEF", "GHIJKL"]}}
or we extend the current
PATCH /collections/<collection_id> {"data": {"collection_id": "blah", ... "refcodes": ["ABCDEF"]}}
I think I prefer the first one.
This can then be used in the sample table -> selected items -> add to collection button.
Right now, we have a
PATCH
route for/collections
that updates the metadata of a given collection.We should add a streamlined way of adding a list of items to a collection. This could be a new route:
or we extend the current
I think I prefer the first one.
This can then be used in the sample table -> selected items -> add to collection button.