api_update_sample_set.Rd
Batch update metadata of samples
api_update_sample_set(sample_ids, updates)
sample_ids | internal, numeric ids of the samples. |
---|---|
updates | named list containing the metadata field(s) to update and the updated value(s). |
The number of updated samples.
# change one field of metadata in one sample api_update_sample_set(15709, list(scan_operator="my test"))#> [1] 1# check on the object page for an object in this sample # https://ecotaxa.obs-vlfr.fr/objectdetails/24473014 # change several fields in one sample api_update_sample_set(15709, list(scan_operator="another test", ship="my ship"))#> [1] 1#> [1] 1# change several fields in several samples at the same time api_update_sample_set( c(15709, 15710), list(scan_operator="the beatles", ship="yellow submarine") )#> [1] 2# check on the pages of objects in each of these two samples # https://ecotaxa.obs-vlfr.fr/objectdetails/24473014 # https://ecotaxa.obs-vlfr.fr/objectdetails/24473015 # restore the original values api_update_sample_set( c(15709, 15710), list(scan_operator="corinne desnos", ship="sagitta", tow_nb=1) )#> [1] 2