Create Answering Rule
Create Answering Rule
/?object=answerrule&action=createRequest URL
https://uc.hopdial.com/ns-api/?object=answerrule&action=createSend your access token in the Authorization: Bearer header. Body parameters are sent as application/x-www-form-urlencoded. New to the API? Start with authentication and rate limits.
Parameters
| Name | Type | Description |
|---|---|---|
domainrequiredbody | string | Filter by domain |
userrequiredbody | string | Filter by Subscriber |
time_framerequiredbody | string | Time Frame of the rule |
orderrequiredbody | string | The priority order of this rule |
enablerequiredbody | string | Enable this rule |
sim_parametersoptionalbody | string | Simultaneous ring destinations. Can be devices or external numbers |
sim_controloptionalbody | string | Enable or disable Simultaneous Ring. Must be "e" for enable or "d" for disable |
for_parametersoptionalbody | string | Forward destinations. Can be devices or extensions |
for_controloptionalbody | string | Enable or disable Forward. Must be "e" for enable or "d" for disable |
fbu_parametersoptionalbody | string | Forward When Busy destinations. |
fbu_controloptionalbody | string | Enable or Disable Forward When Busy. Must be "e" for enable or "d" for disable. |
fna_parametersoptionalbody | string | Forward No Answer destinations. |
fna_controloptionalbody | string | Enable or disable Forward No Answer. Must be "e" for enable or "d" for disable |
fnr_parametersoptionalbody | string | Forward Not Registered Destinations. |
fnr_controloptionalbody | string | Enable or disable Forward Not Registered. Must be "e" for enable or "d" for disable |
dnd_controloptionalbody | string | Enable or Disable Do Not DisturbMust be "e" for enable or "d" for disable |
foa_parametersoptionalbody | string | Forward On Active Destinations |
foa_controloptionalbody | string | Enable or Disable Forward On Active. Must be "e" for enable or "d" for disable |
acp_parametersoptionalbody | string | Callee Rules to Accept. |
acp_controloptionalbody | string | Enable or Disable Accept Rules. Must be "e" for enable or "d" for disable |
scr_controloptionalbody | string | Turn on Call Screening. Must be "e" for enable or "d" for disable |
pna_parametersoptionalbody | string | Prompt No Answer parameters |
pna_controloptionalbody | string | Enable or Disable Prompt No Answer. Must be "e" for enable or "d" for disable |
rej_parametersoptionalbody | string | Calle Reject Rules |
rej_controloptionalbody | string | Enable or Disable Callee Reject Rules. Must be "e" for enable or "d" for disable |
Example request
curl https://uc.hopdial.com/ns-api/ \
-H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
-d object='answerrule' \
-d action='create' \
-d domain='abc-company.11111.service' \
-d user='100'
-d time_frame='*' \
-d enable='yes' \
-d sim_parameters='100 100a 14074887578' \
-d sim_control='e'Responses
200 · application/xml
More Answering Rules endpoints
Read and change how each user’s calls are routed by time of day.
Need a Client ID and Client Secret or help with this endpoint? Contact HopDial support or call (866) 305-0407.