Get file IDs


This call allows you to get the ID for a file, which you can then use to perform operations on that particular file, or to request more information about it.


Example request

POST /v2/action/files/get_ids HTTP/1.1
X-SBG-Auth-Token: 7942f56901534434a054dafc3813bc96
curl --data '["/Datasets/tcga/TCGA-LUAD/ac0d7a82-82cb-4aec-b859-e37375f3de8b/analysis/1e849d63-a360-4d35-b9fe-745a3f0bf291/data/C509.TCGA-97-8547-01A-11D-2393-08.2.bam"]' -s -H "X-SBG-Auth-Token: 7942f56901534434a054dafc3813bc96" -H "content-type: application/json" -X POST ""

Request body

In the body, you should enter an array of strings, containing the file paths.

array of strings, consisting of file paths.

Header Fields

Your authentication token.

Query parameters

NameData typeDescription
fieldsstringSelector specifying a subset of fields to include in the response.


See a list of response codes that may be contained in the body of the response.

Example response body


Note that if you submit an incorrect file path, the call will return the value null. Also, the resulting array will have the same order of elements as in the request.