Note: Unlike other endpoints, the exports for this endpoint are not JSON formatted. They are the same formats as provided by the frontend search export function: csv, sdf, xlsx. |
GET /api/v1/vaults/<vault_id>/searches/<search_id>
Unlike other calls, saved searches can only be performed asynchronously.
Returns an export id and status. See Async Exports for how to check on the status of your call and retrieving the data once it has finished.
Query Parameters (all optional):
projects |
Comma separated list of ids The projects to search |
data_sets |
Comma separated list of ids |
zip |
One of the following: true |
format |
Defaults to csv One of the following: |
GET /api/v1/vaults/<vault_id>/searches
Return a list of accessible saved searches for the given vault.
Examples
curl -H "X-CDD-Token: $TOKEN" https://app.collaborativedrug.com/api/v1/vaults/489978881/searches/97374743?projects=938429932&format=sdf
Returns:
{
"status": "new",
"id": 8
}
curl -H "X-CDD-Token: $TOKEN" https://app.collaborativedrug.com/api/v1/vaults/489978881/searches
Returns:
[
{
"name": "references assay data set",
"id": 97374743
},
{
"name": "kinase inhibition assay data set",
"id": 964912458
}
]