Skip to main content
Glama

mcp-google-sheets

delete-task.ts971 B
import { HttpMethod } from '@activepieces/pieces-common'; import { createAction } from '@activepieces/pieces-framework'; import { ticktickAuth } from '../../index'; import { tickTickApiCall } from '../common/client'; import { projectId, taskId } from '../common/props'; export const deleteTaskAction = createAction({ auth: ticktickAuth, name: 'delete_task', displayName: 'Delete Task', description: 'Deletes an existing task.', props: { projectId: projectId({ displayName: 'List', description: 'The list the task belongs to.', required: true, }), taskId: taskId({ displayName: 'Task ID', description: 'The ID of the task to delete.', required: true, }), }, async run(context) { const { projectId, taskId } = context.propsValue; const response = await tickTickApiCall({ accessToken: context.auth.access_token, method: HttpMethod.DELETE, resourceUri: `/project/${projectId}/task/${taskId}`, }); return response; }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server