Skip to main content
PATCH
Update an opportunity

Authorizations

Authorization
string
header
required

OAuth 2.0 Bearer Token from Clerk authentication

Headers

Idempotency-Key
string

Unique key to ensure idempotent request handling. If a request with the same key was already processed, the original response will be returned.

Path Parameters

id
string
required

The opportunity ID

Body

application/json
name
string

Name of the opportunity

Example:

"Updated opportunity"

value
integer

The monetary value of the opportunity in whole dollars, not cents

Example:

750000

probability
integer

The probability of closing (0-100)

Example:

80

target_close_date
string<date-time>

Expected close date

pipeline_stage_id
string

The pipeline stage ID. Must belong to the opportunity pipeline.

assigned_to_id
string

The assigned user ID from the relevant book users list. Prefer this over owner_id.

owner_id
string

Alias for assigned_to_id

household_id
string

Legacy household ID for household-backed opportunities. Set to null to clear the relationship.

opportunityable_type
enum<string>

Related record type for the opportunity. Must be provided with opportunityable_id.

Available options:
Household,
Contact,
Business
opportunityable_id
string

Related record ID for the opportunity. Must be provided with opportunityable_type. Set opportunityable_type and opportunityable_id to null to clear the relationship.

custom_fields
object

Custom field values as key-value pairs

Response

opportunity updated

id
string
required

The opportunity ID

Example:

"abc123xyz"

name
string
required

The name of the opportunity

Example:

"New Investment Opportunity"

book_id
string
required

The book ID

Example:

"book123xyz"

pipeline
object
required
pipeline_stage
object
required
assigned_to
object
required

The user assigned to this opportunity. Set this with assigned_to_id on create or update.

value
integer | null

The monetary value of the opportunity in dollars

Example:

5000

probability
integer | null

The probability of closing (0-100)

Example:

75

target_close_date
string<date-time> | null

Expected close date

stage_updated_at
string<date-time> | null

When the opportunity last moved stages. Useful for stage aging and pipeline reporting.

household_id
string | null

The household ID (null for unassociated opportunities)

Example:

"household123xyz"

opportunityable_type
enum<string> | null

The related record type for this opportunity

Available options:
Household,
Contact,
Business
opportunityable_id
string | null

The related record ID for this opportunity

opportunityable
object | null

Compact related record payload for the opportunity

custom_fields
object

Custom field values as key-value pairs

Example:
created_at
string<date-time>

When the opportunity was created

updated_at
string<date-time>

When the opportunity was last updated