public ApiResponse<ApiSuccessResponse> startRecordingWithHttpInfo(String id, StartRecordingBody startRecordingBody) throws ApiException {
        com.squareup.okhttp.Call call = startRecordingValidateBeforeCall(id, startRecordingBody, null, null);
        Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
public ApiResponse < ApiSuccessResponse > startRecordingWithHttpInfo ( String id , StartRecordingBody startRecordingBody ) throws ApiException { com . squareup . okhttp . Call call = startRecordingValidateBeforeCall ( id , startRecordingBody , null , null ) ; Type localVarReturnType = new TypeToken < ApiSuccessResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; }
Start recording a call
Start recording the specified call. Recording stops when the call is completed or you send [/voice/calls/{id}/stop-recording](/reference/workspace/Voice/index.html#stopRecording) on either the call or the DN.
@param id The connection ID of the call. (required)
@param startRecordingBody Request parameters. (optional)
@return ApiResponse&lt;ApiSuccessResponse&gt;
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body