Edit Prompt Preference Setting
Update the prompt preference settings of the system.
Request URL
POST {base_url}/{api_path}/prompt_preference/update?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| moh | No | String | The filename of the MoH (music on hold). Note: The maximum
length is 255 characters. |
| call_fwd_prompt | No | String | The type of the call forwarding prompt. Valid value:
|
| invaild_num_prompt | No | String | The prompt to be played when the dial number is invalid. Valid value:
|
| busy_line_prompt | No | String | The prompt to be played when the trunk is busy. Valid value:
|
| dial_fail_prompt | No | String | The prompt to be played when a dial failed. Valid value:
|
| event_center_prompt | No | String | The prompt to be played to the notification contact when answering an event
notification call. Valid value:
|
| enb_call_fwd_prompt | No | Integer | Whether to enable playback of the call forwarding prompt. Valid value:
|
| enb_call_waiting_prompt | No | Integer | Whether to enable playback of the call waiting prompt. Valid value:
|
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
Example
Request example
POST /openapi/v1.0/prompt_preference/update?access_token=gwakjgu9ZBUfz36wql4ndsVKkryI0kdj HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"enb_call_waiting_prompt": 0,
"call_fwd_prompt": "ring_tone",
"enb_call_fwd_prompt": 0
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}