Bulk index external shortcuts

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the /uploadshortcuts endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to this page.

SecurityBearerAuth
Request
Request Body schema: application/json; charset=UTF-8
required
uploadId
required
string

Unique id that must be used for this bulk upload instance

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

required
Array of objects (ExternalShortcut)

Batch of shortcuts information

Responses
200

OK

400

Bad Request

401

Not Authorized

409

Conflict

post/bulkindexshortcuts
Request samples
application/json; charset=UTF-8
{
  • "uploadId": "string",
  • "isFirstPage": true,
  • "isLastPage": true,
  • "forceRestartUpload": true,
  • "shortcuts": [
    • {
      • "title": "string",
      • "intermediateUrl": "string",
      • "decayedVisitScore": 0,
      • "editUrl": "string",
      • "inputAlias": "string",
      • "description": "string",
      • "destinationUrl": "string",
      • "createdBy": "string",
      • "createTime": 0,
      • "updatedBy": "string",
      • "updateTime": 0
      }
    ]
}