API calls related to Plate objects:
Retrieve
GET /api/v1/vaults/<vault_id>/plates/<id>
Get a single plate.
GET /api/v1/vaults/<vault_id>/plates
Get a collection of plates.
Query Parameters (all optional):
plates |
Comma delimited list of plate ids | |
names |
Comma delimited list of plate names | |
locations |
Comma delimited list of plate locations | |
async |
Boolean If true, do an asynchronous export (see Async Export) Use for large data sets. This is recommended any time you want to download more than page_size results. Note: any page_size parameter used in an API GET call that also uses the async=true parameter will be ignored. The GET call will return all valid data for the given GET call. |
|
offset |
The index of the first object actually returned. Defaults to 0. | |
page_size |
The maximum number of objects to return in this call. Default is 50, maximum is 1000. If the response exceeds the page_size, we strongly recommend using the async option instead of downloading multiple chunks. Note: any page_size parameter used in an API GET call that also uses the async=true parameter will be ignored. The GET call will return all valid data for the given GET call. |
|
projects |
Comma-separated list of project ids Defaults to all available projects Limits scope of query |
|
data_sets |
Comma-separated list of public dataset ids Defaults to no data sets Limits scope of query |
|
created_before |
Date (YYYY-MM-DDThh:mm:ss±hh:mm) | |
created_after |
Date (YYYY-MM-DDThh:mm:ss±hh:mm) | |
modified_before |
Date (YYYY-MM-DDThh:mm:ss±hh:mm) | |
modified_after |
Date (YYYY-MM-DDThh:mm:ss±hh:mm) | |
only_ids |
Boolean
|
It can be added to any GET Plates call. Async should still be used when many IDs are expected.
Note: any |
Examples
GET https://app.collaborativedrug.com/api/v1/vaults/489978881/plates?plates=1
Returns:
{
"id": 1,
"class": "plate",
"name": "plate 1",
"volume": 0.0,
"concentration": 0.0,
"statistics": [
{
"id": 39339139,
"class": "plate statistics",
"z_prime_factor": 0.844,
"z_factor": 0.711054342932417,
"positive_control_mean": 18670.0,
"negative_control_mean": 123.85,
"positive_control_standard_deviation": 947.523,
"negative_control_standard_deviation": 13.93,
"sample_mean": 678.7,
"sample_standard_deviation": 785.313,
"sample_count": 2,
"run": 2,
"readout_definition": 1
},
{
"id": 82709074,
"class": "plate statistics",
"positive_control_mean": 10.0,
"negative_control_mean": 1.0,
"sample_count": 0,
"run": 2,
"readout_definition": 3
},
{
"id": 174132653,
"class": "plate statistics",
"sample_mean": 10.0,
"sample_count": 1,
"run": 1,
"readout_definition": 3
},
{
"id": 867196446,
"class": "plate statistics",
"sample_mean": 86.7,
"sample_count": 1,
"run": 1,
"readout_definition": 1
}
],
"wells": [
{
"row": 0,
"col": 0,
"plate": 1,
"batch": 700861902
},
{
"row": 0,
"col": 1,
"plate": 1,
"batch": 787637732
},
{
"row": 0,
"col": 2,
"plate": 1,
"batch": 618771089
},
{
"row": 0,
"col": 3,
"plate": 1,
"batch": 700861902
},
{
"row": 0,
"col": 4,
"plate": 1,
"batch": 700861902
},
{
"row": 0,
"col": 5,
"plate": 1,
"batch": 700861902
},
{
"row": 0,
"col": 6,
"plate": 1,
"batch": 700861902
},
{
"row": 0,
"col": 7,
"plate": 1,
"batch": 700861902
},
{
"row": 0,
"col": 8,
"plate": 1,
"batch": 700861902
},
{
"row": 0,
"col": 9,
"plate": 1,
"batch": 700861902
},
{
"row": 0,
"col": 10,
"plate": 1,
"batch": 700861902
},
{
"row": 0,
"col": 11,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 0,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 1,
"plate": 1,
"batch": 787637732
},
{
"row": 1,
"col": 2,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 3,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 4,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 5,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 6,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 7,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 8,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 9,
"plate": 1,
"batch": 700861902
},
{
"row": 1,
"col": 10,
"plate": 1,
"batch": 858251680
},
{
"row": 1,
"col": 11,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 0,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 1,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 2,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 3,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 4,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 5,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 6,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 7,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 8,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 9,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 10,
"plate": 1,
"batch": 700861902
},
{
"row": 2,
"col": 11,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 0,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 1,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 2,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 3,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 4,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 5,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 6,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 7,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 8,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 9,
"plate": 1,
"batch": 700861902
},
{
"row": 3,
"col": 10,
"plate": 1
},
{
"row": 3,
"col": 11,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 0,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 1,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 2,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 3,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 4,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 5,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 6,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 7,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 8,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 9,
"plate": 1,
"batch": 700861902
},
{
"row": 4,
"col": 10,
"plate": 1
},
{
"row": 4,
"col": 11,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 0,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 1,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 2,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 3,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 4,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 5,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 6,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 7,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 8,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 9,
"plate": 1,
"batch": 700861902
},
{
"row": 5,
"col": 10,
"plate": 1
},
{
"row": 5,
"col": 11,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 0,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 1,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 2,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 3,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 4,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 5,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 6,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 7,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 8,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 9,
"plate": 1,
"batch": 700861902
},
{
"row": 6,
"col": 10,
"plate": 1
},
{
"row": 6,
"col": 11,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 0,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 1,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 2,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 3,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 4,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 5,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 6,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 7,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 8,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 9,
"plate": 1,
"batch": 700861902
},
{
"row": 7,
"col": 10,
"plate": 1
},
{
"row": 7,
"col": 11,
"plate": 1,
"batch": 700861902
}
]
}
GET https://app.collaborativedrug.com/api/v1/vaults/489978881/plates?plates=2,47349766
Returns:
{
"count": 2,
"offset": 0,
"page_size": 50,
"objects": [
{
"id": 2,
"class": "plate",
"name": "empty plate",
"location": "Rack 5, row 23",
"volume": 0.0,
"concentration": 0.0
},
{
"id": 47349766,
"class": "plate",
"name": "plate 3",
"volume": 0.0,
"concentration": 0.0,
"wells": [
{
"row": 0,
"col": 32,
"plate": 47349766,
"batch": 700861902
},
{
"row": 31,
"col": 47,
"plate": 47349766,
"batch": 700861902
}
]
}
]
}
Additional examples:
GET https://app.collaborativedrug.com/api/v1/vaults/489978881/plates?names=Plate%2020211005,Sample%20Plate%2029181108
where %20 are percent encoded spaces.
GET https://app.collaborativedrug.com/api/v1/vaults/489978881/plates/locations=Shelf%20A,Box%2099
where %20 are percent encoded spaces.
Create
POST /api/v1/vaults/<vault_id>/plates/
Creates a plate.
JSON Parameters (all optional):
name |
Specify the name of the new Plate |
projects |
An array of Projects where the Plate will be created |
location |
Indicates the plate's location |
concentration |
Indicates the plate's concentration |
concentration_unit_label |
Indicates the plate's concentration unit |
volume |
Indicates the plate's volume |
volume_unit_label |
Indicates the plate's volume unit |
wells |
Indicates the array of Batches to be associated with the Plate's Wells. Syntax should resemble:
"wells":[
{"pos":"A01","batch":142517171},
{"pos":"A02","batch":126705604},
{"pos":"A03","batch":126705581}
]
|
Plate creation example:
POST /api/v1/vaults/489978881/plates
Passing JSON containing these parameters:
Update
PUT /api/v1/vaults/<vault_id>/plates/<id>
Updates a existing plate.
name |
Specify a new name for the Plate |
projects |
An array of Projects where the Plate will be moved |
location |
Updates the plate's location |
concentration |
Updates the plate's concentration |
concentration_unit_label |
Updates the plate's concentration unit |
volume |
Updates the plate's volume |
volume_unit_label |
Updates the plate's volume unit |
wells |
Updates the array of Batches to be associated with the Plate's Wells. Syntax should resemble:
"wells":[
{"pos":"A01","batch":142517171},
{"pos":"A02","batch":126705604},
{"pos":"A03","batch":126705581}
]
|
Delete
DELETE /api/v1/vaults/<vault_id>/plates/<id>
Delete a single plate.
Examples
curl -H "X-CDD-Token: $TOKEN" -X DELETE https://app.collaborativedrug.com/api/v1/vaults/<vault_id>/plates/<plate_id>
Returns:
{
"message": "Object has been destroyed"
}