---
title: "Update Lead"
method: PATCH
path: "/api/sales/leads/{lead_id}"
tags: ["sales"]
---

# Update Lead

`PATCH /api/sales/leads/{lead_id}`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/sales/leads/{lead_id}`
- Auth: none declared

Edit a lead. `stage` is not editable here on purpose -- moving is
POST /leads/{id}/move, which enforces the path rules and writes a
stage_changed event.

⛔ATTRIBUTION IS GATED ABOVE `sales:write`. Frederick, 2026-08-22: "Keith
should not be able to change the source, but I should be able to, and I
can correct anyone's that need to be corrected."

`source` and `originated_by_principal_id` decide commission --
`lead_originators` marks every non-salesperson originator as a house
account, so moving a lead between those buckets moves money. `sales:write`
is what a salesperson must hold to work leads at all, so it cannot also be
the permission that decides who gets paid for them. Editing anything else
on the lead is unchanged.

## Path parameters

- `lead_id` string, uuid, required

## Request body

- UpdateLeadRequest: Edit a lead in place. Frederick, 2026-08-04: "You should be able to edit leads and deal cards... there might be a difference in pricing -- you'd have to update the new pricing. There might be a difference in ADP." Every field is Optional and OMISSION MEANS UNCHANGED. `est_value_cents` is not here (see CreateLeadRequest's own note) -- editing `adp` recomputes it server-side (pipeline_service.update_lead).
  - `adp` integer, nullable
  - `source` string, nullable
  - `originated_by_principal_id` string, uuid, nullable
  - `owner_principal_id` string, uuid, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
