Rename a team

teams/{team_id}

This call renames the specified team.

Request

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

Example request

PATCH /v2/teams/team_id HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f75
curl  --data '@patch-volume.json' -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "Content-Type: application/json" -X PATCH "https://api.sbgenomics.com/teams/bf8dd2c5-9115-493d-9d3d-c2ecfd0eb843"
from sevenbridges import Api

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

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

# send PATCH request to SB API
team.save()

print(team.name)

Header Fields

Key

Description of value

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-type
required

application/json

Path parameters

Key

Data type of value

Description of value

team_id
required

String

The team that you want to rename.

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.

Key

Data type

Description

name
required

String

The new name for the team.

Example request body

{
  "name": "New team name"
}

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/bf8dd2c5-9115-493d-9d3d-c2ecfd0eb843?offset=0&limit=1",
  "items": [
    {
      "href": "https://api.sbgenomics.com/v2/teams/bf8dd2c5-9115-493d-9d3d-c2ecfd0eb843",
      "name": "New team name"
    }
  ],
  "links": []
}