Required role: | User |
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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<EnsureActionUrl xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.App">
<ClearExisting>false</ClearExisting>
<Method>GET</Method>
<Url>String</Url>
</EnsureActionUrl>