API referenceDeals
Update Deal
PUT
Required scope: deals:write
header
AuthorizationBearer <luso8_sk_live_<40 characters>>A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.
deal_id*Deal Idapplication/json- body
contact?|nullname?string|nulldescription?string|nullstage?string|nullpriority?string|nullamount?number||nullcurrency?|Default
"USD"probability?number|nullexpected_revenue?number||nullprospect_id?string|nullcustomer_id?string|nulllead_id?string|nullcontact_id?string|nullcompany_id?string|nullowner_id?string|nullowner_name?string|nullclose_date?|nulltags?array<unknown>|nullnotes?string|nullcustom_fields?|nullcompany_name?string|nullwon_date?|nulllost_date?|nulllost_reason?string|nullproduct_line_items?array<>|nullSuccessful Response
application/json- response
name?string|nulldescription?string|nullstage?string|nullpriority?string|nullamount?|nullcurrency?|Default
"USD"probability?number|nullexpected_revenue?|nullprospect_id?string|nullcustomer_id?string|nulllead_id?string|nullcontact_id?string|nullcompany_id?string|nullowner_id?string|nullowner_name?string|nullclose_date?|nulltags?array<unknown>|nullnotes?string|nullcustom_fields?|nullid*Idorganization_id*Organization Idwon_date?|nulllost_date?|nulllost_reason?string|nullcreated_at*Created AtFormat
date-timeupdated_at?|nullcontact_name?string|nullcontact_email?string|nullcompany_name?string|nullproduct_line_items?array<>Default
[]curl -X PUT 'https://api.luso8.rexplore.ai/api/v1/deals/deals/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "name": "string", "description": "string", "stage": "string", "priority": "string", "amount": "string", "currency": "USD", "probability": 0, "expected_revenue": "string", "prospect_id": "string", "customer_id": "string", "lead_id": "string", "contact_id": "string", "company_id": "string", "owner_id": "string", "owner_name": "string", "close_date": "2019-08-24T14:15:22Z", "tags": [ null ], "notes": "string", "custom_fields": {}, "id": "string", "organization_id": "string", "won_date": "2019-08-24T14:15:22Z", "lost_date": "2019-08-24T14:15:22Z", "lost_reason": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "contact_name": "string", "contact_email": "string", "company_name": "string", "product_line_items": []}