From Bright Pattern Documentation
|
|
Line 1: |
Line 1: |
− | <translate>= Upload File =
| + | #REDIRECT [[Api]] |
− | ''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 ===
| |
− | {|border="1" style="border-collapse:collapse" cellpadding="5"
| |
− | |<blockquote>''file={file to upload}''
| |
− | </blockquote>
| |
− | |}
| |
− | | |
− | == Returns ==
| |
− | 200 – file ID to be used in the ''chat_session_file'' message (content type: application/json)
| |
− | | |
− | === Example ===
| |
− | {|border="1" style="border-collapse:collapse" cellpadding="5"
| |
− | |''{''
| |
− | | |
− | ''"file_id":”file ID”''
| |
− | | |
− | ''}''
| |
− | |}
| |
− | | |
− | == Errors ==
| |
− | 401 – Unauthorized
| |
− | | |
− | | |
− | | |
− | <center>[[mobile-web-api-specification/GetNewChatEvents|< Previous]] | [[mobile-web-api-specification/GetFile|Next >]]</center>
| |
− | </translate>
| |
Latest revision as of 22:56, 6 August 2020