---
title: "Update Deal Goal"
method: POST
path: "/api/pipeline/deals/{deal_id}/goal"
tags: ["pipeline"]
---

# Update Deal Goal

`POST /api/pipeline/deals/{deal_id}/goal`

## Request

- Base URL: `https://api.every.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.every.ai/api/pipeline/deals/{deal_id}/goal`
- Auth: none declared

Update a deal's goal anchor and trigger a goal_changed replan.

Phase 2: the goal jsonb is the success measure the pipeline agent reads
on every replan. Editing it forces a fresh strategy + draft pass.

## Query parameters

- `user_id` string, nullable
- `org_id` string, nullable

## Request body

- UpdateDealGoalRequest: Body for /deals/{deal_id}/goal. Mutates the deal's `goal` jsonb in place and triggers a replan with trigger='goal_changed' so the agent re-derives strategy + draft against the new objective.
  - `summary` string, nullable
  - `service_ids` string[]
  - `targeting` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/every/apis/every-api.md) · [All operations](https://skmtc.dev/every/apis/every-api/llms.txt) · [OpenAPI document](https://skmtc.dev/every/apis/every-api/revisions/8b1e740c73b8?raw)
