Add elements from selection in a dataset
Refs https://redmine.teklia.com/issues/3653
We want an endpoint named UpdateDatasetSelection that takes the following parameters:
-
corpus_idto reference the selection -
dataset_idto reference the target dataset -
setto specify the dataset's set name where all the elements will be stored
The endpoint must be callable as long as a user has contributor access to the corpus and the dataset belongs to the corpus.
A check must validate that the set name is available for this dataset, and that the dataset is still open for modification.
An immediate bulk creation is triggered for this endpoint, assigning all elements in the selection to the dataset under the specified set name.