Edit Deal

Update a deal by ID (partial update).
PATCH
/v2/pipeline
Request Body
Writeable fields
FieldTypeStatusFormatNotes
dataobject
required
--
data.iduuid
required
uuidUUID of the deal to update. Required for PATCH.
data.deal_sizenumber
optional
-Monetary value (number only, no symbols).
data.stageenum
QualificationProposalNegotiationInterestedVerbalDiscoveryWonLost
optional
-Stage label.
data.open_dateISO 8601 datetime
optional
date-timeISO datetime the deal opened.
data.close_dateISO 8601 datetime
optional
date-timeISO datetime if already closed.
data.companystring
optional
-Company associated with the deal.
data.notesstring
optional
-Freeform notes.
data.contact_emailstring
optional
emailEmail for the primary contact (if no UUID).
cURl example
curl -X PATCH 'https://lunarsend.com/api/v2/pipeline' \
  -H 'x-api-key: $LUNARSEND_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{
    "id": "7b1b0e42-1f2a-4e1e-8e5d-1f6a7b0c9d21",
    "stage": "Negotiation",
    "deal_size": 15000,
    "notes": "Updated after pricing review",
    "contact_email": "ops@A-BLogistics.com"
  }'
Response
[
        {
            success: true,
            data: {
                id: "7b1b0e42-1f2a-4e1e-8e5d-1f6a7b0c9d21",
                user_id: "77f463d7-4107-1957-8b71-ab03acc319a2",
                deal_size: 15000,
                primary_contact: "150c081d-5d5f-401d-abd1-727c35222054",
                stage: "Negotiation",
                open_date: "2025-10-04T14:25:11.000Z",
                close_date: null,
                owner: "John",
                company: "A-B Logistics",
                notes: "Updated after pricing review",
                contact_email: "ops@A-BLogistics.com",
                created_at: "2025-10-04T14:25:11.000Z",
            },
        },
    ]
Response Fields
FieldTypeStatusFormatNotes
statusenum
successerror
read-only optional
--
errorstring - Error description (only present on error)
read-only optional
--
dataobject
required
--
data.iduuid
required
uuidUUID of the deal to update. Required for PATCH.
data.user_iduuid
read-only optional nullable
uuidDefaults to the caller's user_id.
data.deal_sizenumber
optional nullable
-Monetary value (number only, no symbols).
data.primary_contactuuid
read-only optional nullable
uuidUUID of the primary contact for this deal, set automatically based off contact_email
data.stageenum
QualificationProposalNegotiationInterestedVerbalDiscoveryWonLost
optional nullable
-Stage label.
data.open_dateISO 8601 datetime
optional nullable
date-timeISO datetime the deal opened.
data.close_dateISO 8601 datetime
optional nullable
date-timeISO datetime if already closed.
data.ownerstring
read-only optional
-Resolved to the caller's display name.
data.companystring
optional nullable
-Company associated with the deal.
data.notesstring
optional nullable
-Freeform notes.
data.contact_emailstring
optional nullable
emailEmail for the primary contact (if no UUID).
data.created_atISO 8601 datetime
read-only optional nullable
date-timeServer-assigned at creation.