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


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

    g_client.indexing.people.index(employee={
        "email": "Jerrold_Hermann@hotmail.com",
        "department": "<value>",
        "datasource_profiles": [
            {
                "datasource": "github",
                "handle": "<value>",
            },
        ],
    })

    # 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 an employee and optional version for that info

Response

200

OK