---
title: "Update a project only if the expected version matches"
method: PATCH
path: "/v1/projects/{id}"
---

# Update a project only if the expected version matches

`PATCH /v1/projects/{id}`

## Request

- Base URL: `https://api.specstream.ai`
- URL: `https://api.specstream.ai/v1/projects/{id}`
- Auth: API key in header `Authorization`

## Path parameters

- `id` string, required

## Request body

- ProjectPatchRequest
  - `expected_version` integer, required
  - `name` string, nullable
  - `monthly_spend_cap_cents` integer, nullable

## Response `200`

Project

- object
  - `data` Project, required
    - `project_id` string, required
    - `name` string, required
    - `owner_account_id` string, required
    - `version` integer, required
    - `monthly_spend_cap_cents` integer, required
    - `role` 'owner' | 'editor' | 'viewer', required
    - `can_spend` boolean, required
    - `created_at` string, date-time, required

## Other responses

- `default`: Error envelope

---

[API](https://skmtc.dev/specstream/apis/specstream-api.md) · [All operations](https://skmtc.dev/specstream/apis/specstream-api/llms.txt) · [OpenAPI document](https://skmtc.dev/specstream/apis/specstream-api/revisions/5a9f51143a13?raw)
