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
请求载荷
status
string
Possible values: paused, ongoing, completed
响应载荷
id
string
必填
callId
string
必填
channelId
string
status
string
必填
Possible values: accepted, ongoing, paused, completed, available, absent, failed
origin
string
必填
Possible values: call-command-record, call-command-record-call, create-call, bridge-call
duration
integer
stereo
boolean
endCause
string
createdAt
string
必填
updatedAt
string
必填
startedAt
string
endedAt
string
代码示例
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
代码示例
curl -X PATCH "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings/{recordingId}" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
代码示例
{
"status": "paused"
}
代码示例
{
"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"
}