Skip to main content
Glama

mcp-google-sheets

delete-page.ts882 B
import { hubspotAuth } from '../../index'; import { createAction, Property } from '@activepieces/pieces-framework'; import { Client } from '@hubspot/api-client'; import { pageType } from '../common/props'; export const deletePageAction = createAction({ auth: hubspotAuth, name: 'delete-page', displayName: 'Delete Page', description: 'Deletes an existing landing/site page.', props: { pageType: pageType, pageId: Property.ShortText({ displayName: 'Page ID', description: 'The ID of the page to delete.', required: true, }), }, async run(context) { const { pageId, pageType } = context.propsValue; const client = new Client({ accessToken: context.auth.access_token }); if (pageType === 'site_page') { return await client.cms.pages.sitePagesApi.archive(pageId); } else { return await client.cms.pages.landingPagesApi.archive(pageId); } }, });

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