Creation of Datasets

Hello everyone,

I need to create Datasets for some samples via the API, but I read that it is not available via the V3 API and I need to use the V2? Is this still true?

Best regards,

Benedikt

Hello Beneditk,
I am not sure where the information on the old documentation is still valid The javadoc shows that there’s a method to create Datasets:
https://openbis.ch/javadoc/20.10.x/javadoc-api-v3/ch/ethz/sis/openbis/generic/asapi/v3/dto/dataset/create/CreateDataSetsOperation.html

Perhaps the document means that currently the V3 API doesn’t let you create Datasets AND upload data in the same transaction.

https://openbis.readthedocs.io/en/latest/software-developer-documentation/apis/java-javascript-v3-api.html

I can not find anything for creating a dataset in the documentation. When I try to create a dataset, I need to provide a PhysicalDataCreation() to the DataSetCreation(). Where can I put the actual data in? How does the PhysicalDataCreation work?

I’ve never done it myself,but there’s an example called “Registering data sets” towards the end of the documentation. I assume it’s possible to create datasets over the API since it’s how the OpenBIS ELN Kim’s UI does it