MCPcopy Create free account
hub / github.com/mlco2/codecarbon / createProject

Function createProject

webapp/src/api/projects.ts:4–15  ·  view source on GitHub ↗
(
    organizationId: string,
    project: { name: string; description: string },
)

Source from the content-addressed store, hash-verified

2import { Project, ProjectSchema, ProjectInputs } from "./schemas";
3
4export async function createProject(
5 organizationId: string,
6 project: { name: string; description: string },
7): Promise<Project> {
8 return await fetchApi("/projects", ProjectSchema, {
9 method: "POST",
10 body: JSON.stringify({
11 ...project,
12 organization_id: organizationId,
13 }),
14 });
15}
16
17export async function updateProject(
18 projectId: string,

Callers 1

handleSaveFunction · 0.90

Calls 1

fetchApiFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…