Skip to main content

Voicemail Edit

This service is used to edit a voicemail box.

Parameters

DescriptionDefined DataExample DataRequired Parameters[**]/Optional[*]Parameters
Unique ID of the voicemail box obtained from search-6033876dc92de036d1390923**id_
Voicemail box name-test voicemail*name
Voicemail box number-999999*number
Password-999999*password
Email address--email
Request passwordyes/nono*required_password
Allow password changeyes/nono*allow_change_password
Email sending statusyes/nono*send_email
Attach audio file to emailyes/nono*attach_file_email
Play busy greetingyes/nono*play_busy
Play unavailable greetingyes/nono*play_unavailable
Play welcome greetingyes/nono*play_welcome
Play CID (Caller ID) greetingyes/nono*Play_CID
Play envelope greetingyes/nono*Play_Envelope
Delete voicemailyes/nono*Delete_Voicemail
More optionsyes/nono*more_options

Sample Invocation

Show Full Source Code PHP

	<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'http://192.168.51.21/api/v4/voicemails/voicemails/update',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"_id":"6033876dc92de036d1390923",
"name":"test voicemail",
"number":"999999",
"password":"999999",
"email":"",
"required_password":"no",
"allow_change_password":"no",
"send_email":"no",
"attach_file_email":"no",
"play_busy":"no",
"play_unavailable":"no",
"play_welcome":"no",
"Play_CID":"no",
"Play_Envelope":"no",
"Delete_Voicemail":"no",
"more_options":""
}',
CURLOPT_HTTPHEADER => array(
'X-APIKEY: vZKtIKWsld0egNlkzHo8i5LVBqLNBSWARCQsPOSgDjFmAHM3tG',
'Authorization: Basic dGVzdDpBYTEyMzQ1Ng==',
'Content-Type: application/json'
),
));


$response = curl_exec($curl);

if (!curl_errno($curl)) {
$httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
echo 'response code:'.$httpcode, '<br/>';
}

curl_close($curl);
echo $response;
?>