Update a call recording
Update a call recording status during the call, a call recording status can be changed to paused, ongoing, or completed.
PATCH
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings/{recordingId}
Update a call recording
Payload permintaan
status
string
Possible values: paused, ongoing, completed
Payload respons
id
string
wajib
callId
string
wajib
channelId
string
status
string
wajib
Possible values: accepted, ongoing, paused, completed, available, absent, failed
origin
string
wajib
Possible values: call-command-record, call-command-record-call, create-call, bridge-call
duration
integer
stereo
boolean
endCause
string
createdAt
string
wajib
updatedAt
string
wajib
startedAt
string
endedAt
string
Contoh kode
curl -X PATCH 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings/{recordingId}' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'Example 1: Pause a call recording
Contoh kode
curl -X PATCH "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings/{recordingId}" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
Contoh kode
{
"status": "paused"
}
Contoh kode
{β
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",β
"channelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",β
"status": "accepted",β
"origin": "call-command-record",β
"duration": 0,β
"stereo": true,β
"endCause": "string",β
"createdAt": "2023-10-25T14:36:18.580Z",β
"updatedAt": "2023-10-25T14:36:18.580Z",β
"startedAt": "2023-10-25T14:36:18.580Z",β
"endedAt": "2023-10-25T14:36:18.580Z"β
β}