AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { HttpMethod } from '@activepieces/pieces-common';
import { createAction, Property } from '@activepieces/pieces-framework';
import { ampecoAuth } from '../../../common/auth';
import { handleApiError, makeAmpecoApiCall, prepareQueryParams, processPathParameters } from '../../../common/utils';
/**
* Generated from API version: 3.96.4
*/
// Endpoint: DELETE /public-api/resources/charge-point-models/v1.0/{modelId}
export const chargePointModelDeleteAction = createAction({
auth: ampecoAuth,
name: 'chargePointModelDelete',
displayName: 'Resources - Charge Point Models - Delete',
description: 'Delete a Charge Point Model.',
audience: 'both',
aiMetadata: { description: 'Permanently delete a charge point model by its numeric model ID. Destructive: the first call removes the model, later calls for the same ID fail because it no longer exists. Use only when the model should be fully removed.', idempotent: false },
props: {
modelId: Property.Number({
displayName: 'Model Id',
required: true,
}),
},
async run(context): Promise<unknown> {
try {
const url = processPathParameters('/public-api/resources/charge-point-models/v1.0/{modelId}', context.propsValue);
const queryParams = prepareQueryParams(context.propsValue, []);
const body = undefined;
return await makeAmpecoApiCall(
context.auth,
url,
HttpMethod.DELETE,
body,
queryParams
) as unknown;
} catch (error) {
handleApiError(error);
}
},
});