Required role: | User |
POST | /app/ensure-action-url |
---|
Imports System
Imports System.IO
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
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: team.evovoice.io
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
url: String,
clearExisting: False,
method: GET
}