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
Cuerpo de la solicitud
status
string
Possible values: paused, ongoing, completed
Cuerpo de la respuesta
id
string
obligatorio
callId
string
obligatorio
channelId
string
status
string
obligatorio
Possible values: accepted, ongoing, paused, completed, available, absent, failed
origin
string
obligatorio
Possible values: call-command-record, call-command-record-call, create-call, bridge-call
duration
integer
stereo
boolean
endCause
string
createdAt
string
obligatorio
updatedAt
string
obligatorio
startedAt
string
endedAt
string
Ejemplo de código
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
Ejemplo de código
curl -X PATCH "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings/{recordingId}" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
Ejemplo de código
{
"status": "paused"
}
Ejemplo de código
{
"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"
}