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
"use strict";
/** @typedef {'GET'|'POST'} */
export var ActionUrlHttpMethods;
(function (ActionUrlHttpMethods) {
    ActionUrlHttpMethods["GET"] = "GET"
    ActionUrlHttpMethods["POST"] = "POST"
})(ActionUrlHttpMethods || (ActionUrlHttpMethods = {}));
export class EnsureActionUrl {
    /** @param {{url?:string,clearExisting?:boolean,method?:ActionUrlHttpMethods}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The URL to use */
    url;
    /**
     * @type {boolean}
     * @description Clear existing action URLs first */
    clearExisting;
    /**
     * @type {ActionUrlHttpMethods}
     * @description The HTTP method to use */
    method;
}

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

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