POST
/
api
/
index
/
v1
/
uploadshortcuts
from glean import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as g_client:

    g_client.indexing.shortcuts.upload(upload_id="<id>", shortcuts=[
        {
            "input_alias": "<value>",
            "destination_url": "https://needy-harp.name",
            "created_by": "<value>",
        },
    ])

    # Use the SDK ...

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

Response

200

OK