# PATCH /marketing/goals/:goal_id

**Resource:** [MARKETING](./marketing.md)  
**MCP tool:** `update_marketing_goal`  
**Scopes:** `marketing:write`  
**Write operation:** yes

Change a goal: its target, deadline, counting rule, brand or measure. Returns it with fresh progress.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `goal_id` | path | string | yes | The goal id (from get_marketing_plan). |
| `name` | body | string | no | What the goal is, e.g. "FinalPiece income $10,000 a month". |
| `metric` | body | string | no | How it is measured. revenue_monthly: income per month from this workspace's invoices (recurring invoices as a monthly amount, one-off paid invoices spread over build_spread_months, plus any "other_recurring_monthly" snapshot); leads_monthly / clients_monthly: new opportunities / clients won in the last 30 days on Lead Manager's rules; any other key (e.g. branded_impressions): the latest snapshot recorded with that metric. |
| `target_value` | body | number | no | The number to reach. |
| `start_value` | body | number | no | Where it started, so progress is measured from here. Send null to clear. |
| `unit` | body | string | no | Currency code for money goals (default AUD), or the unit, e.g. "impressions". |
| `deadline` | body | string | no | Date to reach it by, YYYY-MM-DD. Send null to clear. |
| `counting_rule` | body | string | no | The exact counting rule in plain words, so nobody argues later about what counts. Send null to clear. |
| `brand_kit_id` | body | string | no | Only count one brand (from list_marketing_brands). Leave out for the whole workspace. Send null to clear. |
| `build_spread_months` | body | number | no | revenue_monthly only: months one-off income is spread over (default 6). |
| `sort_order` | body | number | no | Order on the plan, ascending. |
| `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/marketing/goals/:goal_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"name":"...","metric":"...","target_value":"..."}'
```

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