UNPKG

n8n-nodes-placid

Version:

n8n node to interact with Placid API for creative generation

26 lines 781 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.execute = execute; async function execute(i) { const pdfId = this.getNodeParameter('pdfId', i); if (!pdfId) { throw new Error('PDF ID is required'); } const options = { method: 'DELETE', url: `https://api.placid.app/api/rest/pdfs/${pdfId}`, headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, }; await this.helpers.httpRequestWithAuthentication.call(this, 'placidApi', options); return { json: { success: true, message: `PDF ${pdfId} deleted successfully`, id: pdfId, }, }; } //# sourceMappingURL=delete.operation.js.map