Creates a dial policy filed under the domain in the path and publishes it over the service bus (SBUS). A dial policy is a named set of permit and deny rules that decides which numbers a user may call.Requires Super User scope, or Reseller scope for a domain in its territory. Office Manager and Site Manager scopes answer 403.Send dialpolicy and description. The domain comes from the path; a domain in the body is ignored. A 202 means the change was published, not yet applied. Add synchronous=yes to wait up to 2 seconds for this server to show the policy: the answer is then 200 with the policy, or still 202 if it did not appear in time.A policy with the same name under the domain, * or admin-only answers 409: choose another name. The name may contain only letters, digits, spaces, ., &, - and _, or the policy cannot be addressed by path later.Add rules with POST /domains/{domain}/dialpolicy/{policy}/permission. To create a shared policy, use POST /dialpolicy.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params
Body Params application/json
Examples
Responses
🟢200OK
application/json
Returned instead of 202 when synchronous=yes and the policy appeared within 2 seconds: the new policy.