Skip to main content
Glama

mcp-google-sheets

update-contact-journey.ts1.17 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { tarventAuth } from '../..'; import { makeClient, tarventCommon } from '../common'; export const updateContactJourney = createAction({ auth: tarventAuth, name: 'tarvent_update_contact_journey', displayName: 'Add/Remove A Contact From A Journey', description: 'Adds or removes the contact from a journey.', props: { contactId: tarventCommon.contactId, journeyId: tarventCommon.journeyId(true, 'Select which journey to start or stop.'), action: Property.StaticDropdown({ displayName: 'Add or remove', description: 'Select whether to add or remove the contact from the journey.', required: true, options: { options: [ { label: 'Add', value: 'Add', }, { label: 'Remove', value: 'Remove', }, ], }, }), }, async run(context) { const { contactId, journeyId, action } = context.propsValue; const client = makeClient(context.auth); return await client.addRemoveJourneyContact(action, contactId, journeyId); }, });

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