v1
Projects
Projects

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

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)
  • Auth
    none declared

Path parameters

project_id, integer required

Request body

ProjectUpdate required

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

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

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.

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

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

Successful Response

object required

Changes