Skip to main content
Glama

mcp-google-sheets

update-contact-status.ts1.14 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { tarventAuth } from '../..'; import { makeClient, tarventCommon } from '../common'; import { ContactStatus } from '../common/types'; export const updateContactStatus = createAction({ auth: tarventAuth, name: 'tarvent_update_contact_status', displayName: 'Subscribe/Unsubscribe Contact From Audience', description: 'Subscribes or unsubscribe a contact in an audience.', props: { contactId: tarventCommon.contactId, action: Property.StaticDropdown({ displayName: 'Status', description: 'Select whether to subscribe or unsubscribe the contact.', required: true, options: { options: [ { label: 'Subscribe', value: 'ACTIVE', }, { label: 'Unsubscribe', value: 'OPT_OUT', }, ], }, }), }, async run(context) { const { contactId, action } = context.propsValue; const client = makeClient(context.auth); return await client.updateContactStatus(contactId, action as ContactStatus); }, });

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