Skip to main content
Glama

mcp-google-sheets

add-subscriber-to-group.ts883 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { groupIdsDropdown, makeSenderRequest, senderAuth, subscriberDropdownSingle, } from '../common/common'; import { HttpMethod } from '@activepieces/pieces-common'; export const addSubscriberToGroupAction = createAction({ auth: senderAuth, name: 'add_subscriber_to_group', displayName: 'Add Subscriber to Group', description: 'Add an existing or new subscriber into one or more groups', props: { subscriber: subscriberDropdownSingle, groups: groupIdsDropdown, }, async run(context) { const subscriberData: any = { groups: context.propsValue.groups, }; const response = await makeSenderRequest( context.auth, `/subscribers/${context.propsValue.subscriber}`, HttpMethod.PATCH, subscriberData ); return response.body; }, });

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