Description: We need to create a samples table (samplesContainer) through the API to use as a sample's ancestor but cannot find the endpoint to create it.
Solution: There is no standalone endpoint to create a sample table (samplesContainer), the samples table is created automatically when creating a sample if it does not exist, in those cases the experiment should be use as the ancestor.
Example Response Body:
{
"data": {
"type": "sample",
"attributes": {
"fields": [
{
"id": "2",
"content": {
"value": "create sample"
}
}
]
},
"relationships": {
"ancestors": {
"data": [
{
"type": "experiment",
"id": "eid of the experiment"
}
]
},
"template": {
"data": {
"type": "sample",
"id": "eid of the sample template"
}
}
}
}
}
Comments
0 comments
Article is closed for comments.