Remove a team member

teams/{team_id}/members/{username}

This call removes a member from a team. By removing a member, you remove the user's membership to the team, but do not remove their account from the division.

Request

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

Example request

DELETE /v2/teams/232c475c-a3a0-4127-92b5-f545829ec213/john_smith HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 8a6b42ec064246c9b52ddd68e907197a
curl -X DELETE \
  https://api.sbgenomics.com/v2/teams/232c475c-a3a0-4127-92b5-f545829ec213/john_smith \
  -H 'cache-control: no-cache' \
  -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')

team = api.teams.get(id='232c475c-a3a0-4127-92b5-f545829ec213')

# send DELETE request to SB API
team.remove_member(user='john_smith')

Header fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application/json

Path parameters

Name

Description

team_id
required

The ID of the team you are removing the member from.

username
required

The username of the member you want to remove from a team.

Response

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