/projects
This call creates a new project.
https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/projects
Request
Example request
POST /v2/projects HTTP/1.1
Host: api.sb.biodatacatalyst.nhlbi.nih.gov
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
content-type: application/json
curl --data '{"name": "My New Project", "description": "A project for testing my apps", "billing_group": "ec1dc1e3-12a3-4b56-789c-e3f2dca0c6f7", "tags": ["tcga"]}' -s -H "X-SBG-Auth-Token: 1e43fEXampLEa5523dfd14exAMPle3e5" -H "content-type: application/json" -X POST "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/projects"
Header Fields
| Name | Description |
|---|---|
X-SBG-Auth-Tokenrequired | Your Platform authentication token. |
Query parameters
| Name | Data type | Description |
|---|---|---|
fields | string | Selector specifying a subset of fields to include in the response. |
Request body
In the body, you should enter a list of key-value pairs. The keys, and the values they take, are described in the following table.
| Key | Datatype of value | Description of value |
|---|---|---|
namerequired | string | The name of the project you are creating. |
billing_grouprequired | string | The ID of the billing group for the project. List all billing groups to find your billing group ID. |
description | string | A description of the project. |
tags | string, enclosed in '[ ] | Optionally, enter a tag if you want to make a Controlled Data project. If you omit the tags key, the project will be an Open Data project. |
settings | object | This dictionary contains three fields, locked, controlled and use_interruptible_instances - see below for further information. |
locked | Boolean | This field can be true or false.Set this field to true to lock down a project. Locking down a project prevents any Seven Bridges team member from viewing any information about the task. |
controlled | Boolean | Set to true to indicate a Controlled Data project. Learn more about Controlled Data projects. |
use_interruptible_instances | Boolean | This field can be true or false. Set this field to true to allow the use of spot instances. |
allow_network_access | Boolean | Allows you to control network access for executions within the project. |
Example request body
{
"name": "My New Project",
"description": "A project for testing my apps",
"billing_group": "ec1dc1e3-12a3-4b56-789c-e3f2dca0c6f7",
"tags": ["my-tag"],
"settings":{
"locked": true,
"use_interruptible_instances": false,
"controlled": true,
"allow_network_access": true
}
}
Response
See a list of specific response codes that may be contained in the body of the response.
Example response body
{
"href": "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/projects/RFranklin/my-new-project",
"id": "RFranklin/my-new-project",
"name": "My New Project",
"type": "v2",
"description": "A project for testing my apps",
"tags": ["my-tag"],
"settings":{
"locked": true,
"use_interruptible_instances": false,
"controlled": true,
"allow_network_access": true
},
"billing_group": "ec1dc1e3-12a3-4b56-789c-e3f2dca0c6f7"
}
Interpreting the response body
- The field
lockedis set totrue, which means you've created a locked project. Locking down a project prevents any Seven Bridges team member from viewing any information about the task. - The field
controlledis set totrue, which indicates you've created a Controlled Data project.
