---
title: "Update Project"
method: PATCH
path: "/api/v1/projects/{project_id}"
tags: ["v1", "Projects"]
---

# Update Project

`PATCH /api/v1/projects/{project_id}`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/projects/{project_id}`
- Auth: none declared

Update a project (partial). Supports stage_id, is_archived, is_deleted, etc.

## Path parameters

- `project_id` integer, required

## Request body

- ProjectUpdate: Request model for updating a project. All fields are optional - only provided fields will be updated. This follows PATCH semantics where partial updates are allowed. Note: Some fields are intentionally excluded (system-managed or security-sensitive): - id, updated_at (system-managed) - shop_id (security-sensitive, should not change via PATCH) - project_number (auto-generated, but editable by managers) - latest_bid (system-managed) created_at is editable from the job card. A date-only value is stored at noon UTC so the calendar day does not shift. The database trigger rewrites the generated project number when the month changes.
  - `projectNumber` string, nullable: Jeevy-generated project number (system-managed)
  - `shopNumber` string, nullable: Optional shop-facing project number. Jeevy still assigns project_number.
  - `clientId` integer, nullable: Client ID to assign to this project (updates project code)
  - `clientTeamId` integer, nullable: Client team ID (optional; when set, project assigned to team; when null, to client)
  - `stage_id` integer, nullable: Project stage ID to update
  - `project_title` string, nullable: Project title
  - `project_details` string, nullable: Project details/description
  - `project_class` string, nullable: Project class/category
  - `contractValue` union: Agreed contract value entered by the PM. Read back in preference to the system-managed latest_bid -> project_bids path, which stays excluded from this schema
    - number
    - string
  - `targetMarginPercent` union: The margin this job is meant to return, as a percent (35 for 35%). It sets the target budget the spend chart holds the job against; null follows the default
    - number
    - string
  - `createdAt` string, nullable: Date the job was opened (YYYY-MM-DD). Stored at noon UTC.
  - `delivery_deadline` string, nullable: Delivery deadline (ISO date format)
  - `bid_deadline` string, nullable: Bid deadline (ISO date format)
  - `delivery_estimate` string, nullable: Delivery estimate (ISO date format)
  - `schedulePace` string, nullable: Manager override for project pace: 'ahead' or 'behind'. Null keeps the computed pace.
  - `progressTracking` ProgressTracking, nullable: Progress chart setup: the serials that get a bar, and the categories their work orders are counted under. No serials keeps the default chart.
    - `serialIds` string[]
    - `categories` ProgressCategory[]
      - `id` string, required
      - `name` string, required
      - `workOrderIds` string[]
  - `location` string, nullable: Project location
  - `clientAddressId` integer, nullable: Saved client ship-to this job delivers to. Null clears the link.
  - `clockSiteLatitude` number, nullable: WGS84 latitude for clock-in geofence center; set with clockSiteLongitude to enforce
  - `clockSiteLongitude` number, nullable: WGS84 longitude for clock-in geofence center
  - `clockSiteRadiusMeters` number, nullable: Allowed distance from site in meters (default 500 when coordinates are set)
  - `client_lead_name` string, nullable: Client lead/contact name
  - `client_lead_email` string, nullable: Client lead email
  - `client_lead_phone` string, nullable: Client lead phone
  - `client_poc_id` integer, nullable: Client point of contact ID
  - `status` string, nullable: Project status
  - `state` string, nullable: Project state (e.g., 'active', 'archived')
  - `labor_estimate` number, nullable: Labor estimate
  - `inventory_availability` string, nullable: Inventory availability status
  - `is_archived` boolean, nullable: Whether project is archived
  - `is_deleted` boolean, nullable: Soft delete; when True, deleted_at is set automatically
  - `internal_notes` string, nullable: Internal notes
  - `takeoff_dwgs` string, nullable: Takeoff drawings reference
  - `assignedOwner` string, nullable: Display name cache for assigned owner
  - `assignedOwnerPersonnelId` integer, nullable: Personnel ID of the project owner/manager
  - `tasking_order` unknown[], nullable: Tasking order array
    - unknown
  - `po_number` string, nullable: Client PO number (updates latest client_purchase_orders or creates new)
  - `po_file_path` string, nullable: Path to uploaded PO file in client-pos bucket (replaces existing)
  - `po_file_name` string, nullable: Display name of PO file (replaces existing)
  - `dataClassification` string, nullable: 'commercial' or 'export_controlled'. US Persons may upgrade; only owner may downgrade.

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-17** `f2f848b58c83`: 1 info
  - added the new optional request property `progressTracking`
- **2026-11-16** `8f1a59e4ef90`: 1 info
  - added the new optional request property `schedulePace`
- **2026-10-18** `02b3f0a3ecbb`: 2 info
  - removed the pattern `^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$` from the request property `contractValue/anyOf[subschema #2]/`
  - removed the pattern `^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$` from the request property `targetMarginPercent/anyOf[subschema #2]/`

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/projects/:project_id/patch.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
