Skip to main content
PATCH
/
crm
/
opportunities
/
{opportunity_id}
Update Opportunity
curl --request PATCH \
  --url https://api.getoutbox.ai/crm/opportunities/{opportunity_id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "pipeline_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "stage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "score": 123,
  "value": "<string>",
  "notes": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

opportunity_id
string<uuid>
required

Body

name
string
Minimum string length: 1
pipeline_id
string<uuid>
stage_id
string<uuid>
contact_id
string<uuid> | null

Pass null to unlink the contact.

status
enum<string>
  • open - open
  • won - won
  • lost - lost
Available options:
open,
won,
lost
score
integer | null
value
string<decimal> | null
Pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
notes
string

Response

Updated opportunity.

{key}
any