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


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

    g_client.indexing.people.bulk_index(upload_id="<id>", employees=[
        {
            "email": "Robin.Stoltenberg@yahoo.com",
            "department": "<value>",
            "datasource_profiles": [
                {
                    "datasource": "github",
                    "handle": "<value>",
                },
            ],
        },
        {
            "email": "Robin.Stoltenberg@yahoo.com",
            "department": "<value>",
            "datasource_profiles": [
                {
                    "datasource": "github",
                    "handle": "<value>",
                },
            ],
        },
        {
            "email": "Robin.Stoltenberg@yahoo.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

Describes the request body of the /bulkindexemployees API call Describes the request body of a bulk upload API call

Response

200

OK