Evo Voice

<back to all web services

PatchDialingPermissions

Update the specified dialing permissions

Requires Authentication
Requires any of the roles:SystemAdministrator, Manager, Customer
The following routes are available for this service:
PATCH/system/dialing-permissions/{isoCode}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Settings

Namespace Global

    Namespace Voice.Api.Settings

        '''<Summary>
        '''Update the specified dialing permissions
        '''</Summary>
        <Api(Description:="Update the specified dialing permissions")>
        Public Partial Class PatchDialingPermissions
            Implements IPatch
            '''<Summary>
            '''The account ID you are modifying
            '''</Summary>
            <ApiMember(Description:="The account ID you are modifying")>
            Public Overridable Property AccountId As String

            '''<Summary>
            '''The ISO code to patch
            '''</Summary>
            <ApiMember(Description:="The ISO code to patch")>
            Public Overridable Property IsoCode As String

            '''<Summary>
            '''If low risk numbers within this code are enabled
            '''</Summary>
            <ApiMember(Description:="If low risk numbers within this code are enabled")>
            Public Overridable Property LowRiskNumbersEnabled As Boolean

            '''<Summary>
            '''If high risk special numbers within this code are enabled
            '''</Summary>
            <ApiMember(Description:="If high risk special numbers within this code are enabled")>
            Public Overridable Property HighRiskSpecialNumbersEnabled As Boolean

            '''<Summary>
            '''If high risk toll fraud within this code are enabled
            '''</Summary>
            <ApiMember(Description:="If high risk toll fraud within this code are enabled")>
            Public Overridable Property HighRiskTollfraudNumbersEnabled As Boolean
        End Class
    End Namespace
End Namespace

VB.NET PatchDialingPermissions DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PATCH /system/dialing-permissions/{isoCode} HTTP/1.1 
Host: evovoice.io 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PatchDialingPermissions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Settings">
  <AccountId>String</AccountId>
  <HighRiskSpecialNumbersEnabled>false</HighRiskSpecialNumbersEnabled>
  <HighRiskTollfraudNumbersEnabled>false</HighRiskTollfraudNumbersEnabled>
  <IsoCode>String</IsoCode>
  <LowRiskNumbersEnabled>false</LowRiskNumbersEnabled>
</PatchDialingPermissions>