Skip to main content
Glama
postV1RoutineFolders.ts1.36 kB
/** * Generated by Kubb (https://kubb.dev/). * Do not edit manually. */ import fetch from '@kubb/plugin-client/clients/axios' import type { PostV1RoutineFoldersMutationRequest, PostV1RoutineFoldersMutationResponse, PostV1RoutineFoldersHeaderParams, PostV1RoutineFolders400, } from '../types/PostV1RoutineFolders.ts' import type { RequestConfig, ResponseErrorConfig } from '@kubb/plugin-client/clients/axios' function getPostV1RoutineFoldersUrl() { return `/v1/routine_folders` as const } /** * @summary Create a new routine folder. The folder will be created at index 0, and all other folders will have their indexes incremented. * {@link /v1/routine_folders} */ export async function postV1RoutineFolders( headers: PostV1RoutineFoldersHeaderParams, data?: PostV1RoutineFoldersMutationRequest, config: Partial<RequestConfig<PostV1RoutineFoldersMutationRequest>> & { client?: typeof fetch } = {}, ) { const { client: request = fetch, ...requestConfig } = config const requestData = data const res = await request<PostV1RoutineFoldersMutationResponse, ResponseErrorConfig<PostV1RoutineFolders400>, PostV1RoutineFoldersMutationRequest>({ method: 'POST', url: getPostV1RoutineFoldersUrl().toString(), data: requestData, ...requestConfig, headers: { ...headers, ...requestConfig.headers }, }) return res.data }

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/chrisdoc/hevy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server