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_id
to reference the selection -
dataset_id
to reference the target dataset -
set
to 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.