curl --request POST \
  --url https://{domain}-be.glean.com/rest/api/v1/uploadimage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: image/*'
{
  "url": "<string>",
  "metadata": {
    "type": "BACKGROUND",
    "id": "<string>",
    "ds": "<string>",
    "cid": "<string>",
    "ext": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Scio-Actas
string

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

Query Parameters

type
enum<string>

The type of image requested. Supported values are listed in ImageMetadata.type enum.

Available options:
BACKGROUND,
FEEDBACK,
HEADER,
ICON,
LOGO,
UGC,
USER
id
string

ID, if a specific entity/type is requested. The id may have different meaning for each type. For USER, it is user id For UGC, it is the id of the content For ICON, the doctype.

ds
string

A specific datasource for which an image is requested for. The ds may have different meaning for each type and can also be empty for some. For USER, it is empty or datasource the icon is asked for. For UGC, it is the UGC datasource. For ICON, it is datasource instance the icon is asked for.

cid
string

Content id to differentitate multiple images that can have the same type and datasource e.g. thumnail or image from content of UGC. It can also be empty.

Body

image/* · file
Content and metadata for the image. Content is in the POST body, metadata is in the URL.

The body is of type file.

Response

200
application/json
OK
url
string
required

URL of the uploaded image.

metadata
object