Get details of a division

v2/divisions

This call returns the details of a specified division.

Request

https://api.sbgenomics.com/v2/divisions/{division_id}
https://eu-api.sbgenomics.com/v2/divisions/{division_id}

Example request

GET /v2/divisions/my-division HTTP/1.1
Host: api.sbgenomics.com
Content-type: application/json
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl -X GET \
  https://api.sbgenomics.com/v2/divisions/my-division \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'x-sbg-advance-access: advance' \
  -H 'x-sbg-auth-token: 3259c50e1ac5426ea8f1273259740f74'
from sevenbridges import Api

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

# send GET request to SB API
division = api.divisions.get(id='my-division')

print(division.id, division.name)

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application/json

Path parameters

Name

Description

division_id
required

The ID of the division you are querying.

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/divisions?offset=0&limit=1",
  "items": [
    {
      "href": "https://api.sbgenomics.com/v2/divisions/my-division",
      "id": "08c5ce64-1551-4b7d-b054-63a1517bc7bb",
      "name": "My division"
    }
  ],
  "links": []
}