---
title: "Update Loan"
method: PATCH
path: "/api/projects/loans/{loan_id}"
tags: ["projects"]
---

# Update Loan

`PATCH /api/projects/loans/{loan_id}`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/projects/loans/{loan_id}`
- Auth: none declared

## Path parameters

- `loan_id` integer, required

## Request body

- LoanWriteSchema
  - `finance_program_id` integer, nullable
  - `lender_name` string, nullable
  - `status` string, nullable
  - `amount` union
    - number
    - string
  - `approved_on` string, date, nullable
  - `expires_on` string, date, nullable
  - `funded_on` string, date, nullable
  - `document_link` string, nullable

## Response `200`

OK

- LoanSchema
  - `id` integer, required
  - `project_id` integer, required
  - `finance_program` RefSchema
    - `id` integer, required
    - `name` string, required
  - `finance_to_quote_id` integer, nullable
  - `on_contract` boolean, required
  - `name` string, required
  - `lender_name` string, required
  - `status` string, required
  - `status_label` string, required
  - `amount` number, nullable
  - `approved_on` string, date, nullable
  - `expires_on` string, date, nullable
  - `funded_on` string, date, nullable
  - `document_link` string, required
  - `is_closed` boolean, required
  - `status_changed_at` string, date-time, nullable
  - `project` ProjectRefSchema
    - `id` integer, required
    - `deal_id` integer, required
    - `customer_name` string, required
    - `address` string, required
    - `locality` string, required
    - `status` string, required
    - `status_label` string, required
    - `phase` string, required
  - `note_count` integer
  - `latest_note` string, nullable
  - `latest_note_at` string, date-time, nullable
  - `latest_note_author` string, nullable

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-10-25** `a181801f95f1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/changes/api/projects/loans/:loan_id/patch.md)

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
