Evo Voice

<back to all web services

EnsureActionUrl

Ensures that the specified app user endpoint has the action URL mentioned

Requires Authentication
Required role:User
The following routes are available for this service:
POST/app/ensure-action-url
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.App
Imports Voice.Api.Endpoints

Namespace Global

    Namespace Voice.Api.App

        '''<Summary>
        '''Ensures that the specified app user endpoint has the action URL mentioned
        '''</Summary>
        <Api(Description:="Ensures that the specified app user endpoint has the action URL mentioned")>
        Public Partial Class EnsureActionUrl
            Implements IPost
            '''<Summary>
            '''The URL to use
            '''</Summary>
            <ApiMember(Description:="The URL to use")>
            Public Overridable Property Url As String

            '''<Summary>
            '''Clear existing action URLs first
            '''</Summary>
            <ApiMember(Description:="Clear existing action URLs first")>
            Public Overridable Property ClearExisting As Boolean

            '''<Summary>
            '''The HTTP method to use
            '''</Summary>
            <ApiMember(Description:="The HTTP method to use")>
            Public Overridable Property Method As ActionUrlHttpMethods
        End Class
    End Namespace

    Namespace Voice.Api.Endpoints

        Public Enum ActionUrlHttpMethods
            GET
            POST
        End Enum
    End Namespace
End Namespace

VB.NET EnsureActionUrl DTOs

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

HTTP + CSV

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

POST /app/ensure-action-url HTTP/1.1 
Host: evovoice.io 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"url":"String","clearExisting":false,"method":"GET"}