AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import {
CreateFieldRequest,
Field,
ListFieldsRequestQuery,
ReorderFieldsRequest,
UpdateFieldRequest,
} from '@activepieces/shared';
import { api } from '@/lib/api';
export const fieldsApi = {
list(query: ListFieldsRequestQuery): Promise<Field[]> {
return api.get<Field[]>('/v1/fields', query);
},
create(request: CreateFieldRequest): Promise<Field> {
return api.post<Field>('/v1/fields', request);
},
getById(id: string): Promise<Field> {
return api.get<Field>(`/v1/fields/${id}`);
},
delete(id: string): Promise<void> {
return api.delete<void>(`/v1/fields/${id}`);
},
update(id: string, request: UpdateFieldRequest): Promise<Field> {
return api.post<Field>(`/v1/fields/${id}`, request);
},
reorder(request: ReorderFieldsRequest): Promise<Field[]> {
return api.post<Field[]>('/v1/fields/reorder', request);
},
};