Create a team

v2/teams

This call creates a new team within a specified division.

Request

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

Example request

POST /v2/teams/ HTTP/1.1
Host: api.sbgenomics.com
Content-Type: application/json
X-SBG-Auth-Token: 8a6b42ec064246c9b52ddd68e907197a
curl -X POST \
  https://api.sbgenomics.com/v2/teams/ \
  -H 'content-type: application/json' \
  -H 'x-sbg-advance-access: advance' \
  -H 'x-sbg-auth-token: 8a6b42ec064246c9b52ddd68e907197a' \
from sevenbridges import Api

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

# send POST request to SB API
team = api.teams.create(
    name='my new team',
    division='my-division'
)

print(team.id)

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application/json

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.

Name

Data type

Description

division
required

string

Specify the ID of the division in which you want to create the new team.

name
required

string

Enter the name for the new team.

Example request body

{
        "division": "my-division",
        "name":"my new team"
 
}

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/teams/28ba4ee6-7fb7-4f4b-8fd5-3a1f09944b77",
  "id": "28ba4ee6-7fb7-4f4b-8fd5-3a1f09944b77",
  "name": "my new team"
}