Update a call

Update an active call resource. You can use this request to do additional actions:

  • You can use this request to hangup the call by setting status to completed

  • It can also be used to update the callFlow of the call. Commands of the new callFlow will be executed after the Patch.

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.

type: string
enum:
  - answer
  - hangup
  - playback
  - say
  - gather
  - record
  - bridge
  - pause
  - ringing

Update call

patch

Update a call

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

callIdstring · uuidRequired

The ID for a call

channelIdstring · uuidRequired

The ID for a channel

Body
statusstring · enum · nullableOptionalPossible values:
Responses
chevron-right
202

Call update accepted

application/json
idstring · uuidRequired
channelIdstring · uuidRequired
fromstringRequired
tostringRequired
parentIdstring · uuidOptional
directionstring · enumRequiredPossible values:
statusstring · enumRequiredPossible values:
reasonstringOptional
typestring · enumRequiredPossible values:
durationintegerOptional
hangupCauseCodeintegerOptional
hangupSourcestring · enum · nullableOptionalPossible values:
hangupSipCodestringOptional
createdAtstring · date-timeRequired
updatedAtstring · date-timeRequired
ringingAtstring · date-timeOptional
answeredAtstring · date-timeOptional
endedAtstring · date-timeOptional
scheduledForstring · date-timeOptional
sipTypestring · enumOptionalPossible values:
tagsstring[] · max: 10Optional

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.

patch
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}

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

Was this helpful?