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
import java.math.*
import java.util.*
import net.servicestack.client.*


/**
* Ensures that the specified app user endpoint has the action URL mentioned
*/
@Api(Description="Ensures that the specified app user endpoint has the action URL mentioned")
open class EnsureActionUrl : IPost
{
    /**
    * The URL to use
    */
    @ApiMember(Description="The URL to use")
    var url:String? = null

    /**
    * Clear existing action URLs first
    */
    @ApiMember(Description="Clear existing action URLs first")
    var clearExisting:Boolean? = null

    /**
    * The HTTP method to use
    */
    @ApiMember(Description="The HTTP method to use")
    var method:ActionUrlHttpMethods? = null
}

enum class ActionUrlHttpMethods
{
    Get,
    Post,
}

Kotlin EnsureActionUrl DTOs

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

HTTP + 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: evovoice.io 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	url: String,
	clearExisting: False,
	method: GET
}