get https://cgc-api.sbgenomics.com/v2
/projects/{project_owner}/{project}
This call returns the details of a specified project.
https://cgc-api.sbgenomics.com/v2/projects/{project_owner}/{project}
Request
Example request
Referring to your project
Note that
project_owneris always case-sensitive, and thatprojectis not the project's name but its short name. For full details of identifying objects using the API, please see the API overview.
GET /v2/projects/rfranklin/rfranklin-s-demo-project HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
curl -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "content-type: application/json" -X GET "http://cgc-api.sbgenomics.com/v2/projects/rfranklin/rfranklin-s-demo-project"
Header Fields
| Name | Description |
|---|---|
X-SBG-Auth-Tokenrequired | Your CGC authentication token. |
Path parameters
| Name | Description |
|---|---|
project | The short name of the project you are querying. |
project_owner | The owner of the project you are querying. |
Query parameters
| Name | Data type | Description |
|---|---|---|
fields | string | Selector specifying a subset of fields to include in the response. |
Response
See a list of CGC-specific response codes that may be contained in the body of the response.
Example response body
This example response body displays the JSON returned when the fields parameter in the request is set to _all.
{
"href": "http://cgc-api.sbgenomics.com/v2/projects/rfranklin/rfranklin-s-demo-project",
"id": "rfranklin/rfranklin-s-demo-project",
"name": "rfranklin's Demo Project",
"type": "v2",
"description": "This project contains data, completed analyses, and results.\n\Contains WGS, WES, and two different RNA-Seq read alignments - STAR and TopHat, fusion transcript detection analysis using ChimeraScan, FASTQ quality control and more.\n\n Open it up and take a look.",
"tags": [],
"settings": {
"locked": false,
"controlled": true,
"use_interruptible_instances": false,
"use_memoization": true,
"allow_network_access": true,
"intermediate_files": {
"retention":"LIMITED",
"duration":24
}
},
"permissions": {
"write": true,
"read": true,
"copy": true,
"execute": true,
"admin": true
},
"billing_group": "ec1dc1e3-12a3-4b56-789c-e3f2dca0c6f7"
}
Interpreting the response body
- The object
typein the response should be ignored: all projects have typev2. - The object
tagsis an array that either contains the string"tcga"or is empty. If it contains"tcga"this indicates that the project is a Controlled Data project. Otherwise, the project is Open Data. - The dictionary
settingscontains two Boolean field,lockedandcontrolled. Thelockedfield shows whether or not your project is locked. You can lock down a project to prevent any Seven Bridges team member from viewing information about your project. Learn more about creating a locked project. Thecontrolledfield indicates whether or not the project is a controlled data project.
