Pause or resume a recording on an active Call

Pause or resume a recording on an active phone call.

Request URL

PUThttps://voice.bandwidth.com/api/v2/accounts/{accountId}/calls/{callId}/recording

Basic Authentication

Bandwidth's Voice API leverages Basic Authentication with your Dashboard API Credentials. Read more about how Bandwidth secures endpoints in the Security & Credentials document.


Supported Parameters

Parameter Description Mandatory
state The recording state. Possible values:

paused to pause an active recording
recording to resume a paused recording
Yes

Example 1 of 1: Pause a currently active recording

curl -X PUT \
    --url 'https://voice.bandwidth.com/api/v2/accounts/{accountId}/calls/{callId}/recording' \
     -u '{username}:{password}'
     -H 'Content-type: application/json' \
     --data-raw '
     {
       "state": "paused"
     }'
ModifyCallRecordingState modifyCallRecordingState = new ModifyCallRecordingState();
modifyCallRecordingState.setState(State1Enum.PAUSED);

try {
    ApiResponse<Void> response = voiceClient.modifyCallRecordingState(VOICE_ACCOUNT_ID, "callId", modifyCallRecordingState);
} catch (ApiException | IOException e) {
    e.printStackTrace();
}
controller.ModifyCallRecordingState(accountId, callId, new ModifyCallRecordingState
{
    State = State1Enum.PAUSED
});
body = ModifyCallRecordingState.new
body.state = "paused"
voice_client.modify_call_recording_state(VOICE_ACCOUNT_ID, call_id, body: body)
body = ModifyCallRecordingState()
body.state = "paused"
voice_client.modify_call_recording_state(VOICE_ACCOUNT_ID, call_id, body=body)
var body = new BandwidthVoice.ModifyCallRecordingState({
    "state": "paused"
});

try {
    await voiceController.modifyCallRecordingState(accountId, callId, body);
catch (error) {
    console.error(error);
}
$body = new BandwidthLib\Voice\Models\ModifyCallRecordingState();
$body->state = "paused";

try {
    $voiceClient->modifyCallRecordingState($accountId, $callId, $body);
} catch (BandwidthLib\APIException $e) {
    print_r($e);
}

results matching ""

    No results matching ""