-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create sample with "new" fields #35
Comments
Update: Maybe the But how can I create a "field object" and use it to create a sample? |
Hi, the API description is unfortunately out-of-date, as you're saying the E.g. to create new barcode you need to pass the |
Thx for your reply. As I try to find out the correct command I crashed the database, but now we´re good to go once more :D . Could you provide the complete command I have to use to insert a new sample with a barcode (just the name and the barcode and maybe a "created timestamp") because I still couldnt find the correct one. Your description above is helpful but incomplete. |
Hi,
how can I create a sample using the API when I need the new fields in "Barcodes" (not a template):
I can read them with a common "search" query and the result is:
I want to create a sample filling the fields in "barcodes".
The definition of the "create_sample" function doesn't help at all: "
"
it seems like there's no direct connection to these fields. So I tried the "fields" parameter but it doesn't have a "barcodes" key. I tried the "extra_fields" parameter but it only works for additional fields created by a template or in addition to the sample creation.
What really puzzles me is that in your sample API description there're no barcodes fields at all. Just the barcode field which is usually empty after creating a sample in the GUI.
So I have no idea what to do or where to look at. I'm fine with creating the sample and update the barcode into it afterwards but I can't find a update_sample function to do so.
Can someone help me out?
PS: I direcly asked the rspace support and they said I should build the function I need by myself using the API.
The text was updated successfully, but these errors were encountered: