From Bright Pattern Documentation
< 5.2:Mobile-web-api-specification
Revision as of 04:32, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19 • 5.2 • 5.3 • 5.8

Upload File

Upload File uploads a file to the server. The maximum file size is 25 MB. The server will store up to 1000 files. Newly received files will replace the oldest files. This method can be used, for example, to send pictures from the client mobile application to the contact center agents.

URL

http[s]://<host>:<port>/clientweb/api/v1/files?tenantUrl=<tenantUrl>

Method

POST

Request Body

File to be uploaded (content type: mulitpart/form-data)

Example

file={file to upload}

Returns

200 – file ID to be used in the chat_session_file message (content type: application/json)

Example

{

"file_id":”file ID”

}

Errors

401 – Unauthorized


< Previous | Next >
< Previous | Next >