# PATCH /inventory/purchase-orders/:purchase_order_id/lines/:line_id

**Resource:** [INVENTORY](./inventory.md)  
**MCP tool:** `update_purchase_order_line`  
**Scopes:** `purchase_orders:write`  
**Write operation:** yes

Change a purchase order line's quantity (never below what has already arrived), unit cost or note.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `purchase_order_id` | path | string | yes | The purchase order (its UUID). |
| `line_id` | path | string | yes | The purchase order line (its UUID), from get_purchase_order. |
| `quantity` | body | number | no | New quantity ordered. Cannot go below what has already been received. |
| `unit_cost` | body | number | no | New cost per unit, before tax. |
| `description` | body | string | no | New note for this line. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/inventory/purchase-orders/:purchase_order_id/lines/:line_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"quantity":"...","unit_cost":"...","description":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`