List all your projects

This call returns a list of all projects you are a member of. Each project's project_id and URL on the Seven Bridges Platform will be returned.

Request

https://api.sbgenomics.com/v2/projects
https://eu-api.sbgenomics.com/v2/projects

Example request

GET /v2/projects HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl  -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "content-type: application/json" -X GET "https://api.sbgenomics.com/v2/projects"
from sevenbridges import Api

api = Api(url='https://api.sbgenomics.com/v2',
          token='3259c50e1ac5426ea8f1273259740f74')

# send GET request to SB API
all_projects = api.projects.query()

for project in all_projects:
    print(project.name)

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Query parameters

Name

Data type

Description

name

string

Filter projects by the project name. The search is partial and case-insensitive.

offset

integer

The zero-based starting index in the entire collection of the first item to return. The default value is 0. This is a pagination-specific attribute.

limit

integer

The maximum number of collection items to return for a single request. Minimum value is 1. The maximum value is 100 and the default value is 50. This is a pagination-specific attribute.

fields

fields

Selector specifying a subset of fields to include in the response.

tags

string

Filter project by project tags. Specify a comma-separated list of tags to return projects that have all of the specified tags.

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.

Example response body

{
  "href": "https://api.sbgenomics.com/v2/projects?offset=0&limit=50",
  "items": [
    {
      "href": "https://api.sbgenomics.com/v2/projects/RFranklin/test",
      "id": "RFranklin/test",
      "name": "test"
      "created_by": "rfranklin",
      "category": "PRIVATE",
      "created_on": "2019-04-24T11:51:20Z",
      "modified_on": "2019-04-24T11:51:20Z"
    },
    {
      "href": "https://api.sbgenomics.com/v2/projects/RFranklin/sandbox",
      "id": "RFranklin/sandbox",
      "name": "sandbox"
      "created_by": "rfranklin",
      "category": "PRIVATE",
      "created_on": "2019-04-24T11:51:20Z",
      "modified_on": "2019-04-24T11:51:20Z"
    },
    {
      "href": "https://api.sbgenomics.com/v2/projects/RFranklin/my-project",
      "id": "RFranklin/my-project",
      "name": "my project"
      "created_by": "rfranklin",
      "category": "PRIVATE",
      "created_on": "2019-04-24T11:51:20Z",
      "modified_on": "2019-04-24T11:51:20Z"
    }
  ],
  "links": []
}