POST samples instances_import
Changed onpost/api/v1/samples/import
Request
- Base URLhttps://app.onecodex.com
- URLhttps://app.onecodex.com/api/v1/samples/import
- AuthAPI key in header X-API-Key
Request body
Example request
{
"metadata": {
"external_sample_id": "LIMS-2024-00123"
},
"project": {
"__DOLLAR_REF__": "/api/v1/projects/a1b2c3d4e5f67890"
}
}Response
OK
Example response
{
"$uri": "/api/v1/samples/0d77065796f8d173",
"metadata": {
"__DOLLAR_REF__": "/api/v1/metadata/a1b2c3d4e5f67890"
},
"owner": {
"__DOLLAR_REF__": "/api/v1/users/a1b2c3d4e5f67890"
},
"primary_classification": {
"__DOLLAR_REF__": "/api/v1/classifications/a1b2c3d4e5f67890"
},
"project": {
"__DOLLAR_REF__": "/api/v1/projects/a1b2c3d4e5f67890"
},
"tags": [
{
"__DOLLAR_REF__": "/api/v1/tags/a1b2c3d4e5f67890"
}
]
}Changes
- info
endpoint added
- info