PUT api/2.0/crm/voip/numbers/{numberId}/settings
Updates the settings of the phone number with the ID specified in the request.
Name |
Description |
Type |
Example |
numberId
sent in url
|
Phone number ID
|
string
|
some text
|
greeting
sent in body
|
New phone number greeting audio
|
string
|
some text
|
holdUp
sent in body
|
New phone number audio for holding up
|
string
|
some text
|
wait
sent in body
|
New phone number waiting URL
|
string
|
some text
|
voiceMail
sent in body
|
New phone number voice mail
|
string
|
some text
|
workingHours
sent in body
|
New phone number working hours
|
ASC.VoipService.WorkingHours
|
|
allowOutgoingCalls
sent in body
|
Defines if a phone number allows making the outgoing calls or not
optional
|
Bool value
|
true
|
record
sent in body
|
Defines if the phone number allows recording the calls or not
optional
|
Bool value
|
true
|
alias
sent in body
|
New phone number alias
|
string
|
some text
|
PUT api/2.0/crm/voip/numbers/some+text/settings
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"greeting": "some text",
"holdUp": "some text",
"wait": "some text",
"voiceMail": "some text",
"workingHours": {
"Enabled": false,
"From": null,
"To": null
},
"allowOutgoingCalls": null,
"record": null,
"alias": "some text"
}
Updated phone number settings