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 .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{"url":"String","clearExisting":false,"method":"GET"}