---
title: "Upsert a project's budget"
method: PUT
path: "/costs/project/{projectId}/budget"
tags: ["Cost"]
---

# Upsert a project's budget

`PUT /costs/project/{projectId}/budget`

## Path parameters

- `projectId` string, required

## Request body

- CostApiUpsertProjectBudgetRequestBody
  - `amount` number, required
  - `timeframe` 'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY' | 'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY', required
  - `thresholds` number[], required

## Response `200`

- CostApiUpsertProjectBudgetResponse
  - `id` string
  - `projectId` string, required
  - `amount` number, required
  - `timeframe` 'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY' | 'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY', required
  - `thresholds` number[], required

---

[API](https://skmtc.dev/envzero/apis/env0-api.md) · [All operations](https://skmtc.dev/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/envzero/env0-api/revisions/513441cbe9dc/schema)
