Update a call
Update an active call resource. You can use this request to do additional actions:
It can also be used to update the
callFlow
of the call. Commands of the newcallFlow
will be executed after the Patch.
Update call status
Check bellow the available call status.
CallFlowCommand
Check bellow the available commands when initiating an outbound call. In order to assess the options of each command, you may explore each command section.
Update call
Update a call
PATCH/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}
Authorization
Path parameters
workspaceId*string (uuid)
The ID of the workspace
callId*string (uuid)
The ID for a call
channelId*string (uuid)
The ID for a channel
Body
statusnullable enum
completed
callFlowarray of CallFlowCommand
Response
Call update accepted
Body
id*Id-2 (string (uuid))
channelId*ChannelId (string (uuid))
from*string
to*string
originator*ChannelCallOriginatorOrReceiver
receiver*ChannelCallOriginatorOrReceiver
parentIdId-2 (string (uuid))
direction*Direction (enum)
incomingoutgoing
status*Status-4 (enum)
acceptedstartingringingongoingcompletedno-answerbusyfailedcancelledscheduled
reasonstring
type*Type-2 (enum)
pstnsipwebrtc
durationinteger
hangupCauseCodeinteger
hangupSourcenullable HangupSource (enum)
calleecallerapitimeoutmedia-timeoutnone
hangupSipCodestring
createdAt*string (date-time)
updatedAt*string (date-time)
ringingAtstring (date-time)
answeredAtstring (date-time)
endedAtstring (date-time)
scheduledForstring (date-time)
callFlowCallFlow
notificationCallNotification
qualityInsightsqualityInsights
sipInsightssignallingInsights
amdResultAmdResult
sipTypeSIPType (enum)
elasticbyocforward
tagsTags-2 (array of Name-3 (string))
Tags to associate with the call. Tags are converted to lower case and tags that do not exist are automatically created. You can view your created tags in the UI. You can specify up to 10 tags per call.
Request
Response
Example 1: Update a call by answering
Example 2: Update a call by sending ringing, pause for 2 seconds, answer and play an announcement
Last updated