get https://cgc-api.sbgenomics.com/v2
files/{folder_id}/list
This call lists the contents of the specified folder.
https://cgc-api.sbgenomics.com/v2/files/{folder_id}/list
Request
Example request
GET /v2/files/568e69abe9b0307bc0414164/list HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
Content-Type: application/json
curl -X GET -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "x-sbg-advance-access: advance" -H "Content-Type: application/json" "http://cgc-api.sbgenomics.com/v2/files/568e69abe9b0307bc0414164/list"
Header Fields
Name | Description |
---|---|
X-SBG-Auth-Token required | Your Seven Bridges Platform authentication token. |
Content-Type required | application/json |
Response
See a list of CGC-specific response codes that may be contained in the body of the response.
Example response body
{
"href": "https://cgc-api.sbgenomics.com/v2/files/568e69abe9b0307bc0414164/list?offset=0&limit=5",
"items": [
{
"href": "https://cgc-api.sbgenomics.com/v2/files/57fba0581e63d72f08ba054e",
"id": "57fba0581e63d72f08ba054e",
"name": "folder-name-1",
"project": "rfranklin/my-project",
"parent": "568e69abe9b0307bc0414164",
"type": "FOLDER"
},
{
"href": "https://cgc-api.sbgenomics.com/v2/files/57fde04c1c94d72f08ba054a",
"id": "57fde04c1c94d72f08ba054a",
"name": "file-name-1",
"project": "rfranklin/my-project",
"parent": "568e69abe9b0307bc0414164",
"type": "FILE"
},