NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Dialrule → Add a New Dial Rule Into a Dial Plan

AI-generated

Summary

Adds a new dial rule into a specified domain and dial plan.

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • domain (required) — Domain in which to create the dial rule
  • dialplan (required) — Target dial plan identifier
  • CreateDialrule__body — JSON body containing the rule configuration

Output shape

a single object representing the newly created dial rule

Returns the created rule's details; may include error information if validation fails

Examples

Example 1: Create a rule for domain example.com with ID 123

domain: example.com, dialplan: 123, body: {"name":"test"}

Example 2: Add a rule with default options and custom body

refreshOptions: true, domain: mydomain.com, dialplan: default, body: {"action":"play"}

Links

Discussion