Add a team member

This call adds a division member to the specified team.

Request

https://api.sbgenomics.com/v2/teams/{team_id}/members
https://eu-api.sbgenomics.com/v2/teams/{team_id}/members

Example request

POST /v2/teams/8ea54acb-6844-44b2-9f2e-2123f6d75c8f/members 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/8ea54acb-6844-44b2-9f2e-2123f6d75c8f/members \
  -H 'content-type: application/json' \
  -H 'x-sbg-auth-token: 6609a406463c4bafa37ff7ba03d5d9b0' \
  -d '{"id": "my-division/rfranklin"}'
from sevenbridges import Api

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

team = api.teams.get(id='8ea54acb-6844-44b2-9f2e-2123f6d75c8f')

# send POST request to SB API
team_member = team.add_member(user='my-division/rfranklin')

print(team_member.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

id
required

string

Specify the ID of the division member you are adding to the team using the following format: division_id/username.

Example request body

{
    "id": "my-division/rfranklin"
}

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/924646fe-fe78-45b2-a20a-f473a8dcfe7b/members",
  "id": "08c5ce64-1551-4b7d-b054-63a1517bc7bb/john-smith",
}