Skip to main content
POST
/
changeConversationOpportunity
Change Conversation Opportunity
curl --request POST \
  --url https://api.attention.tech/v2/changeConversationOpportunity \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "conversation_id": "conv-uuid-123",
  "opportunity_id": "opp-uuid-456",
  "remove_opportunity": false,
  "skip_intelligence_calculation": false
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Body

Request body with the conversation ID and opportunity details

conversation_id
string
required

UUID of the conversation to update

Example:

"conv_abc123"

opportunity_id
string

UUID of the opportunity to link. Required when linking or updating an opportunity.

Example:

"opp_xyz789"

entity_code
string

CRM entity code for the opportunity (e.g., 'salesforce', 'hubspot')

Example:

"salesforce"

skip_intelligence_calculation
boolean
default:false

When true, skips recalculating CRM intelligence fields after the opportunity change. Defaults to false.

remove_opportunity
boolean
default:false

When true, removes the current opportunity from the conversation instead of linking one. Defaults to false.

Response

Opportunity changed successfully

success
boolean
required

Indicates whether the opportunity was changed successfully