POST
/
api
/
index
/
v1
/
indexteam
from glean import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as g_client:

    g_client.indexing.people.index_team(team={
        "id": "<id>",
        "name": "<value>",
        "datasource_profiles": [
            {
                "datasource": "github",
                "handle": "<value>",
            },
            {
                "datasource": "github",
                "handle": "<value>",
            },
            {
                "datasource": "github",
                "handle": "<value>",
            },
        ],
        "members": [
            {
                "email": "Rachelle20@yahoo.com",
            },
            {
                "email": "Rebeka.Gerhold@hotmail.com",
            },
            {
                "email": "Jace86@yahoo.com",
            },
        ],
    })

    # Use the SDK ...

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json; charset=UTF-8

Info about a team and optional version for that info

Response

200

OK