Skip to main content
PUT
/
teams
/
{id}
/
opportunity
Update Team Opportunity
curl --request PUT \
  --url https://api.attention.tech/v2/teams/{id}/opportunity \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "opportunity_id": "opp_xyz789",
  "title": "Enterprise Deal - Acme Corp"
}
'
{
  "id": "rec_abc123"
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

UUID of the team

Body

Opportunity details to upsert

opportunity_id
string
required

External CRM opportunity ID to upsert

Example:

"opp_xyz789"

title
string
required

Display title for the opportunity

Example:

"Enterprise Deal - Acme Corp"

Response

Opportunity created or updated successfully

id
string

UUID of the created or updated opportunity record

Example:

"rec_abc123"