---
title: "Replan Deal Route"
method: POST
path: "/api/pipeline/deals/{deal_id}/replan"
tags: ["pipeline"]
---

# Replan Deal Route

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

Enqueue a per-deal replan job for the pipeline agent.

Generates a fresh `pipeline_run_token`, writes it to the deal row, and
enqueues a `pipeline_deal_replan` job carrying the token. Older queued
jobs for the same deal abort as `superseded` when they pick up because
their stored token no longer matches the row's current token.

## Query parameters

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

## Request body

- ReplanDealRequest — Optional context for a manual replan trigger. Both fields are optional — the runner falls back to the existing deal state if neither is provided. `user_note` corresponds to the dialog's "Refine plan" free-text card; `user_context` is additional weighted context used to influence the next strategy/draft.
  - `user_note` string, nullable
  - `user_context` 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/f8600f7a4ae3/schema)
