NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Dial Permisions → Delete a Permission by ID in a Dialpolicy

AI-generated

Summary

Delete a permission by ID within a dialpolicy

Inputs

  • DeletePermission__path__policy (required) — Identifier of the dialpolicy containing the permission
  • DeletePermission__path__id (required) — Identifier of the permission to delete
  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options

Output shape

no body — success/failure only

Typically returns 204 No Content on success; errors are signaled by HTTP status codes.

Examples

Example 1: Delete permission with ID 456 in dialpolicy /policy/Marketing

Set DeletePermission__path__policy to '/policy/Marketing', DeletePermission__path__id to '456', optionally enable Refresh Dropdown Cache

Example 2: Remove a specific permission from a domain's dialplan

Provide the domain's policy path and the permission ID; enable refreshOptions if needed

Example 3: Clean up obsolete permissions after policy changes

Iterate through permissions and delete each by its ID using the policy path

Links

Discussion