Skip to main content
Glama

mcp-google-sheets

assign-badge.ts1.04 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { assignBadgeToMember } from '../api'; import { buildBadgesDropdown } from '../props'; import { bettermodeAuth, BettermodeAuthType } from '../auth'; export const assignBadgeAction = createAction({ name: 'assign_badge', auth: bettermodeAuth, displayName: 'Assign Badge to Member', description: 'Assign an existing badge to a member by email', props: { badgeId: Property.Dropdown({ displayName: 'Badge', description: 'The badge to assign', required: true, refreshers: [], options: async ({ auth }) => await buildBadgesDropdown(auth as BettermodeAuthType), }), email: Property.ShortText({ displayName: 'Email', description: 'The email of the member to assign the badge to', required: true, }), }, async run(context) { return await assignBadgeToMember( context.auth as BettermodeAuthType, context.propsValue.badgeId, context.propsValue.email ); }, });

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