---
title: "Update a deal"
method: PUT
path: "/crm/{connection_id}/deal/{id}"
tags: ["crm", "deal"]
---

# Update a deal

`PUT /crm/{connection_id}/deal/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/crm/{connection_id}/deal/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- CrmDeal: A deal represents an opportunity with companies and/or contacts
  - `id` string: Unique identifier for this deal object
  - `created_at` string, date-time: The date that this deal object was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: The last date that this deal object was updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: The name of this deal
  - `amount` number: The potential amount that deal could be worth
  - `currency` string: The currency for the deal amount (3 letter ISO code; eg. USD)
  - `closed_at` string, date-time: The date that this deal closed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `closing_at` string, date-time: expected closing date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `stages` CrmReference[]
    - `id` string
    - `name` string
    - `type` string
  - `pipelines` CrmReference[]
    - `id` string
    - `name` string
    - `type` string
  - `source` string: The source for this deal
  - `probability` number
  - `tags` string[]
  - `lost_reason` string
  - `won_reason` string
  - `user_id` string: (reference to HrisEmployee)
  - `contact_ids` string[]
  - `company_ids` string[]
  - `description` string
  - `metadata` CrmMetadata[]
    - `id` string
    - `slug` string
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `raw` unknown

## Response `200`

Successful

- CrmDeal: A deal represents an opportunity with companies and/or contacts
  - `id` string: Unique identifier for this deal object
  - `created_at` string, date-time: The date that this deal object was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: The last date that this deal object was updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: The name of this deal
  - `amount` number: The potential amount that deal could be worth
  - `currency` string: The currency for the deal amount (3 letter ISO code; eg. USD)
  - `closed_at` string, date-time: The date that this deal closed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `closing_at` string, date-time: expected closing date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `stages` CrmReference[]
    - `id` string
    - `name` string
    - `type` string
  - `pipelines` CrmReference[]
    - `id` string
    - `name` string
    - `type` string
  - `source` string: The source for this deal
  - `probability` number
  - `tags` string[]
  - `lost_reason` string
  - `won_reason` string
  - `user_id` string: (reference to HrisEmployee)
  - `contact_ids` string[]
  - `company_ids` string[]
  - `description` string
  - `metadata` CrmMetadata[]
    - `id` string
    - `slug` string
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
