From Bright Pattern Documentation
|
|
Line 1: |
Line 1: |
− | <translate>= Send Events =
| + | #REDIRECT [[Api]] |
− | ''Send Events'' sends [[mobile-web-api-specification/ClientEvents|events from the client]] to the server side and returns [[mobile-web-api-specification/ServerEvents|events from the server]].
| |
− | | |
− | == URL ==
| |
− | http[s]://<host>:<port>/clientweb/api/v1/chats/{chatId}/events?tenantUrl=<tenantUrl>
| |
− | | |
− | == Method ==
| |
− | POST
| |
− | | |
− | == Request Body ==
| |
− | Array of chat events (content type: application/json)
| |
− | | |
− | === Example ===
| |
− | {|border="1" style="border-collapse:collapse" cellpadding="5"
| |
− | |''{''
| |
− | | |
− | <blockquote>''“events”:[<array of chat events>]''
| |
− | </blockquote>
| |
− | ''}''
| |
− | |}
| |
− | | |
− | == Returns ==
| |
− | 200 – Array of new chat events from the server side (content type: application/json)
| |
− | | |
− | === Example ===
| |
− | {|border="1" style="border-collapse:collapse" cellpadding="5"
| |
− | |''{''
| |
− | | |
− | ''"events":[<array of new chat events from server>]''
| |
− | | |
− | ''}''
| |
− | |}
| |
− | | |
− | == Errors ==
| |
− | 401 – Unauthorized
| |
− | | |
− | 404 – Not found
| |
− | | |
− | | |
− | | |
− | <center>[[mobile-web-api-specification/GetActiveChat|< Previous]] | [[mobile-web-api-specification/GetChatHistory|Next >]]</center>
| |
− | </translate>
| |
Latest revision as of 22:57, 6 August 2020