Skip to main content
PATCH
Update deal

Authorizations

Authorization
string
header
required

Authenticate with a Bearer token: API key, OAuth token, or session token.

Path Parameters

id
string
required

Deal UUID

Body

application/json
name
string

Deal name.

Minimum string length: 1
client_id
string<uuid>

Client company UUID.

amount
number

Deal amount.

currency_code
string

ISO 4217 currency code (e.g. USD, EUR, GBP).

Required string length: 3
compensation
number

Candidate's expected total annual compensation.

Required range: x >= 0
compensation_currency_code
string

ISO 4217 currency code for compensation.

Required string length: 3
pricing_rate
number

Recruitment fee percentage (0–100).

Required range: 0 <= x <= 100
win_probability
number

Win probability (0–100).

Required range: 0 <= x <= 100
deal_status_id
string<uuid>

Deal status UUID.

description
string

Description.

closed_date
string | null

ISO 8601 close date. Pass null to clear.

open_date
string<date>

Deal opening date (YYYY-MM-DD).

deal_lost_reason_id
string<uuid> | null

Lost reason UUID from deal_lost_reasons. Pass null to clear the selected lost reason.

deal_lost_reason_text
string | null

Additional notes explaining why the deal was lost. Pass null to clear.

deal_won_reason_id
string<uuid> | null

Won reason UUID from deal_won_reasons. Pass null to clear the selected won reason.

deal_won_reason_text
string | null

Additional notes explaining why the deal was won. Pass null to clear.

job_ids
string<uuid>[]

Job UUIDs to link to this deal. Replaces all existing deal_jobs links.

referred_by
string<uuid>

Person UUID of the referrer.

owner_ids
string<uuid>[]

Team member UUIDs to assign as deal owners. Replaces all existing deal_owners links. Pass an empty array to remove all owners.

client_contact_ids
string<uuid>[]

Client contact UUIDs to attach as deal contacts. Replaces all existing deal_client_contacts links. Pass an empty array to detach all contacts. Each contact must belong to this team.

custom_fields
object[]

Custom field values to update.

is_archived
boolean

Set true to archive the deal, false to unarchive.

Response

Deal updated

success
enum<boolean>
required
Available options:
true
data
object
required