n8n-nodes-base
Version:
Base nodes of n8n
14 lines • 543 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.del = del;
const transport_1 = require("../../../transport");
async function del(index) {
const postId = this.getNodeParameter('postId', index);
const body = {};
const qs = {};
const requestMethod = 'DELETE';
const endpoint = `posts/${postId}`;
const responseData = await transport_1.apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
}
//# sourceMappingURL=execute.js.map