Skip to main content
Glama

mcp-google-sheets

update-recipient.ts1.27 kB
import { Property, createAction } from '@activepieces/pieces-framework'; import { onfleetAuth } from '../..'; import Onfleet from '@onfleet/node-onfleet'; export const updateRecipient = createAction({ auth: onfleetAuth, name: 'update_recipient', displayName: 'Update Recipient', description: 'Updates a recipient', props: { id: Property.ShortText({ displayName: 'Recipient ID', description: 'The ID of the recipient you want to update', required: true, }), name: Property.ShortText({ displayName: 'Name', description: "The recipient's full name", required: false, }), notes: Property.ShortText({ displayName: 'Notes', required: false, }), skipSMSNotifications: Property.Checkbox({ displayName: 'Skip SMS Notifications', required: false, }), }, async run(context) { const onfleetApi = new Onfleet(context.auth); const recipient: any = { name: context.propsValue['name'] ?? undefined, notes: context.propsValue['notes'] ?? undefined, skipSMSNotifications: context.propsValue['skipSMSNotifications'] ?? undefined, }; return await onfleetApi.recipients.update( context.propsValue['id'], recipient ); }, });

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