curl --request POST \
  --url https://{domain}-be.glean.com/api/index/v1/indexemployeelist \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json; charset=UTF-8' \
  --data '{
  "employees": [
    {
      "employee": {
        "email": "<string>",
        "firstName": "<string>",
        "lastName": "<string>",
        "preferredName": "<string>",
        "id": "<string>",
        "phoneNumber": "<string>",
        "location": "<string>",
        "structuredLocation": {
          "deskLocation": "<string>",
          "timezone": "<string>",
          "address": "<string>",
          "city": "<string>",
          "state": "<string>",
          "region": "<string>",
          "zipCode": "<string>",
          "country": "<string>",
          "countryCode": "<string>"
        },
        "title": "<string>",
        "photoUrl": "<string>",
        "businessUnit": "<string>",
        "department": "<string>",
        "datasourceProfiles": [
          {
            "datasource": "github",
            "handle": "<string>",
            "url": "<string>",
            "nativeAppUrl": "<string>",
            "isUserGenerated": true
          }
        ],
        "teams": [
          {
            "id": "<string>",
            "name": "<string>",
            "url": "<string>"
          }
        ],
        "startDate": "2023-12-25",
        "endDate": "2023-12-25",
        "bio": "<string>",
        "pronoun": "<string>",
        "alsoKnownAs": [
          "<string>"
        ],
        "profileUrl": "<string>",
        "socialNetworks": [
          {
            "name": "<string>",
            "profileName": "<string>",
            "profileUrl": "<string>"
          }
        ],
        "managerEmail": "<string>",
        "managerId": "<string>",
        "type": "FULL_TIME",
        "relationships": [
          {
            "name": "<string>",
            "email": "<string>"
          }
        ],
        "status": "CURRENT",
        "additionalFields": [
          {
            "key": "<string>",
            "value": [
              {}
            ]
          }
        ]
      },
      "version": 123
    }
  ]
}'

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 /indexemployeelist API call

employees
object[]

List of employee info and version.

Info about an employee and optional version for that info

Response

200

OK