NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Dialrule → Update a Dial Rule by ID in a Dial Plan

AI-generated

Summary

Update a dial rule within a specified domain and dialplan by ID

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • domain (required) — Domain to update the dial rule within (e.g., example.com)
  • dialplan (required) — Dialplan identifier (string)
  • dialrule (required) — Dialrule identifier (string)
  • body — JSON payload containing the updated properties of the dial rule

Output shape

the updated dial rule object

Returns the updated dial rule; no pagination or error envelope is part of the normal response

Examples

Example 1: Update rule settings for a specific rule

Set domain to 'example.com', dialplan to 'default', dialrule to 'rule123', and provide body with rule configuration; optionally enable refreshOptions

Example 2: Refresh dropdown before updating

Enable refreshOptions, specify domain, dialplan, dialrule, and supply body payload to update the rule

Links

Discussion