Upload shortcuts

Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortcuts, and they can be managed in the knowledge tab once uploaded.

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 (Shortcut)

Batch of shortcuts information

Responses
200

OK

400

Bad Request

401

Not Authorized

409

Conflict

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