Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
44 lines (32 loc) · 1.87 KB

File metadata and controls

44 lines (32 loc) · 1.87 KB

Update Call Status

{% hint style="danger" %} WebRTC is no longer supported with Omnichannel Livechat. To configure audio/video calls, see Omnichannel Audio/Video Call Configuration. {% endhint %}

Update the call status of an existing WebRTC audio/video call.

HTTP MethodURLRequires Auth
PUT/api/v1/livechat/webrtc.call/:callIdyes

{% hint style="info" %} Permission required: view-l-room {% endhint %}

Path Variables

KeyExample ValueDescription
callId*zRAeTszXor8CCPceBThe call message _id.

Body Parameters

KeyExample ValueDescription
rid*abc123xyzabcThe room ID.
status*endedThe status of the call.

Example Call

{% code overflow="wrap" %}

curl --location --request GET 'http://localhost:3000/api/v1/livechat/webrtc.call/zRAeTszXor8CCPceB\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name' \
-d '{ 
    "rid": "abc123xyzabc", 
    "status": "ended" 
}'

{% endcode %}

Example Response

{
    "status": "ended",
    "success": true
}