Create Answering Rule

Create Answering Rule

POST/?object=answerrule&action=create

Request URL

POST
https://uc.hopdial.com/ns-api/?object=answerrule&action=create

Send 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

NameTypeDescription
domain
requiredbody
string

Filter by domain

user
requiredbody
string

Filter by Subscriber

time_frame
requiredbody
string

Time Frame of the rule

order
requiredbody
string

The priority order of this rule

enable
requiredbody
string

Enable this rule

sim_parameters
optionalbody
string

Simultaneous ring destinations. Can be devices or external numbers

sim_control
optionalbody
string

Enable or disable Simultaneous Ring. Must be "e" for enable or "d" for disable

for_parameters
optionalbody
string

Forward destinations. Can be devices or extensions

for_control
optionalbody
string

Enable or disable Forward. Must be "e" for enable or "d" for disable

fbu_parameters
optionalbody
string

Forward When Busy destinations.

fbu_control
optionalbody
string

Enable or Disable Forward When Busy. Must be "e" for enable or "d" for disable.

fna_parameters
optionalbody
string

Forward No Answer destinations.

fna_control
optionalbody
string

Enable or disable Forward No Answer. Must be "e" for enable or "d" for disable

fnr_parameters
optionalbody
string

Forward Not Registered Destinations.

fnr_control
optionalbody
string

Enable or disable Forward Not Registered. Must be "e" for enable or "d" for disable

dnd_control
optionalbody
string

Enable or Disable Do Not DisturbMust be "e" for enable or "d" for disable

foa_parameters
optionalbody
string

Forward On Active Destinations

foa_control
optionalbody
string

Enable or Disable Forward On Active. Must be "e" for enable or "d" for disable

acp_parameters
optionalbody
string

Callee Rules to Accept.

acp_control
optionalbody
string

Enable or Disable Accept Rules. Must be "e" for enable or "d" for disable

scr_control
optionalbody
string

Turn on Call Screening. Must be "e" for enable or "d" for disable

pna_parameters
optionalbody
string

Prompt No Answer parameters

pna_control
optionalbody
string

Enable or Disable Prompt No Answer. Must be "e" for enable or "d" for disable

rej_parameters
optionalbody
string

Calle Reject Rules

rej_control
optionalbody
string

Enable or Disable Callee Reject Rules. Must be "e" for enable or "d" for disable

Example request

text
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.