Requires any of the roles: | SystemAdministrator, Manager, Customer |
GET | /system/dialing-permissions |
---|
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
Public Partial Class DialingPermissionInfo
Public Overridable Property IsoCode As String
Public Overridable Property Name As String
Public Overridable Property LowRiskNumbersEnabled As Boolean
Public Overridable Property HighRiskSpecialNumbersEnabled As Boolean
Public Overridable Property HighRiskTollfraudNumbersEnabled As Boolean
End Class
'''<Summary>
'''Get all of the country based dialing permissions for this account
'''</Summary>
<Api(Description:="Get all of the country based dialing permissions for this account")>
Public Partial Class GetDialingPermissions
Implements IGet
'''<Summary>
'''The account ID you want to retrieve for
'''</Summary>
<ApiMember(Description:="The account ID you want to retrieve for")>
Public Overridable Property AccountId As String
End Class
Public Partial Class GetDialingPermissionsResponse
Public Overridable Property Permissions As List(Of DialingPermissionInfo)
End Class
End Namespace
End Namespace
VB.NET GetDialingPermissions DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /system/dialing-permissions HTTP/1.1 Host: team.evovoice.io Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"permissions":[{"isoCode":"String","name":"String","lowRiskNumbersEnabled":false,"highRiskSpecialNumbersEnabled":false,"highRiskTollfraudNumbersEnabled":false}]}