---
title: "Update or move a deal"
method: PATCH
path: "/api/v1/deals/{id}"
tags: ["Deals"]
---

# Update or move a deal

`PATCH /api/v1/deals/{id}`

## Request

- Base URL: `https://mailinapp.com`
- URL: `https://mailinapp.com/api/v1/deals/{id}`
- Auth: HTTP bearer

Any of `title`, `value`, `currency` and `stageId` (a stage of the deal's own pipeline). A stage change is recorded in the deal's history and fires the `deal.stage_changed` webhook event and any deal-stage journey; moving to the current stage changes nothing (`moved: false`). Nothing is written when any part of the body is invalid.

## Path parameters

- `id` string, required

## Request body

- object
  - `title` string
  - `value` union
    - number
    - string
  - `currency` string
  - `stageId` string

## Response `200`

The updated deal

- object
  - `deal` Deal, required
    - `id` string, required
    - `title` string, required
    - `value` number, required
    - `currency` string, required
    - `pipelineId` string, required
    - `stageId` string, required
    - `stage` string, nullable, required: The stage's name.
    - `status` 'open' | 'won' | 'lost', required
    - `source` 'manual' | 'journey' | 'booking' | 'checkout' | 'proposal' | 'api', required
    - `listId` string, required
    - `rowId` string, required
    - `email` string, email, required
  - `moved` boolean, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key
- `404`: Not found, or not this account's
- `429`: Too many requests for this key

---

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