Upload files for Chat.

post/uploadchatfiles

Upload files for Chat.

SecurityBearerAuth
Request
query Parameters
timezoneOffset
integer

The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.

header Parameters
X-Glean-Auth-Type
string

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

X-Scio-Actas
string <email>

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

Request Body schema: multipart/form-data
required
files
required
Array of strings <binary>

Raw files to be uploaded for chat in binary format.

Responses
200

OK

Response Schema: application/json
Array of objects (ChatFile)

Files uploaded for chat.

400

Invalid request

401

Not Authorized

403

Forbidden

429

Too Many Requests

Request samples
Response samples
application/json
{
  • "files": [
    • {
      • "id": "FILE_1234",
      • "url": "www.google.com",
      • "name": "sample.pdf",
      • "metadata": {
        • "status": "PROCESSING",
        • "uploadTime": 0,
        • "processedSize": 0,
        • "failureReason": "PARSE_FAILED",
        • "mimeType": "string"
        }
      }
    ]
}