---
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`

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.net/every/apis/every-api.md) · [All operations](https://skmtc.net/every/apis/every-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/every/every-api/revisions/7c5dfa63b897/schema)
