List projects owned by a particular user

List the projects owned by and accessible to a particular user. Each project's ID and URL will be returned. Please keep in mind that you will only be able to list projects you are a member of.

Request

https://api.sbgenomics.com/v2/projects/{owner}
https://eu-api.sbgenomics.com/v2/projects/{owner}

Example request

GET /v2/projects/rfranklin 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/RFranklin"
from sevenbridges import Api

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

# send GET request to SB API
my_projects = api.projects.query(owner='rfranklin')

for project in my_projects:
    print(project.name)

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Path parameters

Name

Description

owner

The owner whose projects you want to query.

Query parameters

Name

Data type

Description

name

string

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

fields

string

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/rfranklin",
  "items": [
    {
      "href": "https://api.sbgenomics.com/v2/projects/rfranklin/Quickstart",
      "id": "rfranklin/Quickstart",
      "name": "Quickstart",
      "created_by": "rfranklin",
      "category": "PRIVATE",
      "created_on": "2017-07-18T11:19:48Z",
      "modified_on": "2017-07-18T11:19:48Z"
    },
    {
      "href": "https://api.sbgenomics.com/v2/projects/RFranklin/my-project",
      "id": "rfranklin/my-project",
      "name": "My project",
      "description": "testing testing.\n* one\n* two\n* three"
      "created_by": "rfranklin",
      "category": "PRIVATE",
      "created_on": "2017-07-18T11:19:48Z",
      "modified_on": "2017-07-18T11:19:48Z"
    }
  ]
}