MCPcopy Create free account
hub / github.com/GmpABR/NexusFlow / createTask

Function createTask

frontend/src/api/tasks.ts:4–7  ·  view source on GitHub ↗
(title: string, columnId: number, description?: string, priority: string = 'Low')

Source from the content-addressed store, hash-verified

2import type { TaskCard } from './boards';
3
4export const createTask = async (title: string, columnId: number, description?: string, priority: string = 'Low'): Promise<TaskCard> => {
5 const { data } = await api.post<TaskCard>('/tasks', { title, columnId, description, priority });
6 return data;
7};
8
9export const moveTask = async (taskId: number, targetColumnId: number, newOrder: number): Promise<TaskCard> => {
10 const { data } = await api.put<TaskCard>(`/tasks/${taskId}/move`, { targetColumnId, newOrder });

Callers 2

handleGenerateBoardFunction · 0.90
BoardPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected