From Bright Pattern Documentation
Jump to: navigation, search
 
(Redirected page to Api)
 
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]://&lt;host&gt;:&lt;port&gt;/clientweb/api/v1/chats/{chatId}/events?tenantUrl=&lt;tenantUrl&gt;
 
 
 
== Method ==
 
POST
 
 
 
== Request Body ==
 
Array of chat events (content type: application/json)
 
 
 
=== Example ===
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
|''{''
 
 
 
<blockquote>''“events”:[&lt;array of chat events&gt;]''
 
</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"
 
|''{''
 
 
 
''&quot;events&quot;:[&lt;array of new chat events from server&gt;]''
 
 
 
''}''
 
|}
 
 
 
== 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

Redirect to:

• 5.19 • 5.2 • 5.3 • 5.8

/prevnext/