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

Function updateProject

webapp/src/api/projects.ts:17–25  ·  view source on GitHub ↗
(
    projectId: string,
    project: ProjectInputs,
)

Source from the content-addressed store, hash-verified

15}
16
17export async function updateProject(
18 projectId: string,
19 project: ProjectInputs,
20): Promise<Project> {
21 return await fetchApi(`/projects/${projectId}`, ProjectSchema, {
22 method: "PATCH",
23 body: JSON.stringify(project),
24 });
25}
26
27export async function getProjects(organizationId: string): Promise<Project[]> {
28 try {

Callers 2

handleSaveFunction · 0.90
handleSubmitFunction · 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…