Skip to main content
Glama

mcp-google-sheets

rename-space.ts983 B
import { medullarAuth } from '../../index'; import { createAction,Property } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { medullarCommon } from '../common'; import { medullarPropsCommon } from '../common'; export const renameSpace = createAction({ auth: medullarAuth, name: 'renameSpace', displayName: 'Rename Space', description: 'Rename an existing Space.', props: { spaceId: medullarPropsCommon.spaceId, space_name: Property.ShortText({ displayName: 'Space Name', required: true, }), }, async run(context) { const response = await httpClient.sendRequest({ method: HttpMethod.PATCH, url: `${medullarCommon.aiUrl}/spaces/${context.propsValue.spaceId}/`, headers: { Authorization: `Bearer ${context.auth}`, }, body: { name: context.propsValue.space_name, }, }); 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