From Bright Pattern Documentation
< 3.13:Mobile-web-api-specification
Revision as of 22:52, 26 August 2016 by Sasha (talk | contribs) (Created new topic from branched topic Documentation:ServicePattern:mobile-web-api-specification:UploadFile:3.12)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 3.10 • 3.11 • 3.12 • 3.13 • 3.14 • 3.15 • 3.16 • 3.17 • 3.18

Upload File

Description Uploads a file to the server. The maximum file size is 25MB. 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 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 >