curl --request POST \
  --url https://{domain}-be.glean.com/api/index/v1/bulkindexshortcuts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json; charset=UTF-8' \
  --data '{
  "uploadId": "<string>",
  "isFirstPage": true,
  "isLastPage": true,
  "forceRestartUpload": true,
  "shortcuts": [
    {
      "inputAlias": "<string>",
      "description": "<string>",
      "destinationUrl": "<string>",
      "createdBy": "<string>",
      "createTime": 123,
      "updatedBy": "<string>",
      "updateTime": 123,
      "title": "<string>",
      "intermediateUrl": "<string>",
      "decayedVisitScore": 123,
      "editUrl": "<string>"
    }
  ]
}'

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

uploadId
string
required

Unique id that must be used for this bulk upload instance

shortcuts
object[]
required

Batch of shortcuts information

isFirstPage
boolean

true if this is the first page of the upload. Defaults to false

isLastPage
boolean

true if this is the last page of the upload. Defaults to false

forceRestartUpload
boolean

Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true

Response

200

OK