Requires any of the roles: | SystemAdministrator, Manager, Customer |
PATCH | /system/dialing-permissions/{isoCode} |
---|
Imports System
Imports System.IO
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 .csv suffix or ?format=csv
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: team.evovoice.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"accountId":"String","isoCode":"String","lowRiskNumbersEnabled":false,"highRiskSpecialNumbersEnabled":false,"highRiskTollfraudNumbersEnabled":false}