---
title: "Update deal information"
method: PUT
path: "/deals/update"
tags: ["Deals"]
---

# Update deal information

`PUT /deals/update`

Update various fields of a deal including name, value, commitment status, and close date

## Request body

- object
  - `entity_type_id` integer, required — Type identifier for the entity
  - `entity_base_id` integer, required — Unique identifier of the deal to update
  - `deal_name` string — New name for the deal
  - `deal_value` number — New value/revenue for the deal
  - `commit_status` 'Committed' | 'Not Committed' — New commitment status for the deal
  - `close_date` string, date-time — New expected close date

## Response `200`

Deal updated successfully

- object
  - `message` string
  - `deal` object
    - `id` integer
    - `name` string
    - `revenue` number
    - `is_committed` boolean
    - `close_date` string, date-time
    - `last_updated_at` string, date-time

## Other responses

- `400` — Bad Request - Invalid or missing parameters
- `404` — Deal not found
- `500` — Server error

---

[API](https://skmtc.net/supabase/apis/dalil-oauth-resource-api.md) · [All operations](https://skmtc.net/supabase/apis/dalil-oauth-resource-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/supabase/dalil-oauth-resource-api/versions/40a7125e0355/schema)
