Indexing API
- Documents
- Permissions
- Troubleshooting
- Datasources
- Authentication
- People
- Shortcuts
Client API
- Activity
- Announcements
- Answers
- Authentication
- Chat
- Agents
- Collections
- Documents
- Insights
- Messages
- Pins
- Search
- Entities
- Shortcuts
- Summarize
- Verification
People
Bulk index employees
People
Bulk index employees
deprecated
Bulk upload details of all the employees. This deletes all employees uploaded in the prior batch. SOON TO BE DEPRECATED in favor of /bulkindexemployees.
POST
/
api
/
index
/
v1
/
indexemployeelist
curl --request POST \
--url https://{instance}-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
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
Response
200
OK
Was this page helpful?
curl --request POST \
--url https://{instance}-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
}
]
}'