Skip to Content

Update Deal

PUT
/api/v1/deals/deals/{deal_id}

Required scope: deals:write

Authorization

headerAuthorizationBearer <luso8_sk_live_<40 characters>>

A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.

Path Parameters

deal_id*Deal Id

Request Body

application/json
  1. body
contact?|null
name?string|null
description?string|null
stage?string|null
priority?string|null
amount?number||null
currency?|
Default"USD"
probability?number|null
expected_revenue?number||null
prospect_id?string|null
customer_id?string|null
lead_id?string|null
contact_id?string|null
company_id?string|null
owner_id?string|null
owner_name?string|null
close_date?|null
tags?array<unknown>|null
notes?string|null
custom_fields?|null
company_name?string|null
won_date?|null
lost_date?|null
lost_reason?string|null
product_line_items?array<>|null

Response Body

Successful Response

application/json
  1. response
name?string|null
description?string|null
stage?string|null
priority?string|null
amount?|null
currency?|
Default"USD"
probability?number|null
expected_revenue?|null
prospect_id?string|null
customer_id?string|null
lead_id?string|null
contact_id?string|null
company_id?string|null
owner_id?string|null
owner_name?string|null
close_date?|null
tags?array<unknown>|null
notes?string|null
custom_fields?|null
id*Id
organization_id*Organization Id
won_date?|null
lost_date?|null
lost_reason?string|null
created_at*Created At
Formatdate-time
updated_at?|null
contact_name?string|null
contact_email?string|null
company_name?string|null
product_line_items?array<>
Default[]
Example Request
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": []}