Space Docs
Domain Model

Opportunity

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
customerIdstringYes—ID of the associated customer
primaryContactIdstringNo—ID of the associated primary contact
siteIdstringNo—ID of the associated site
titlestringYes—Title
stageenum(lead, qualified, survey, proposal, negotiation, won, lost)Yes—Stage
pipelineTypeenum(new_construction, retrofit, service_agreement, expansion, other)Yes—Pipeline type
sourceenum(referral, website, cold_call, existing_customer, partner, trade_show, portal_request, other)No—Source
estimatedValuenumberNo—Estimated value
expectedCloseDatestring.date-timeNo—Expected close date
probabilityintegerNo—Probability
solutionFamiliesstring[]No—Solution families
scopeSummarystringNo—Scope summary
competitorNotesstringNo—Competitor notes
winLossReasonstringNo—Win loss reason
nextStepDescriptionstringNo—Next step description
nextStepDatestring.date-timeNo—Next step date
bidDueDatestring.date-timeNo—Bid due date
budgetConfirmedbooleanYes—Budget confirmed
priorityenum(low, medium, high, urgent)No—Priority
lostReasonCategoryenum(price, timing, competitor, scope_mismatch, no_decision, relationship, other)No—Lost reason category
technicalRequirementsstringNo—Technical requirements
weightedValuenumber,nullYes—Weighted value
closedAtunknownYes—Closed at
ownerUserIdstringNo—ID of the associated owner user
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
customerIdstringYes—ID of the associated customer
primaryContactIdunknownNo—ID of the associated primary contact
siteIdunknownNo—ID of the associated site
titlestringYes—Title
stageenum(lead, qualified, survey, proposal, negotiation, won, lost)Yes"lead"Stage
pipelineTypeenum(new_construction, retrofit, service_agreement, expansion, other)Yes—Pipeline type
sourceunknownNo—Source
estimatedValueunknownNo—Estimated value
expectedCloseDateunknownNo—Expected close date
probabilityunknownNo—Probability
solutionFamiliesstring[]No—Solution families
scopeSummaryunknownNo—Scope summary
competitorNotesunknownNo—Competitor notes
winLossReasonunknownNo—Win loss reason
nextStepDescriptionunknownNo—Next step description
nextStepDateunknownNo—Next step date
bidDueDateunknownNo—Bid due date
budgetConfirmedbooleanYesfalseBudget confirmed
priorityunknownNo—Priority
lostReasonCategoryunknownNo—Lost reason category
technicalRequirementsunknownNo—Technical requirements
ownerUserIdunknownNo—ID of the associated owner user
engagementTypeenum(direct_to_end_user, subcontracted_by_upstream, prime_with_subcontractors, upstream_and_downstream, service_only, warranty_only, internal, other)No"direct_to_end_user"Engagement type
endUserOrganizationIdunknownNo—ID of the associated end user organization
upstreamOrganizationIdunknownNo—ID of the associated upstream organization
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
customerIdstringNo—ID of the associated customer
primaryContactIdunknownNo—ID of the associated primary contact
siteIdunknownNo—ID of the associated site
titlestringNo—Title
stageenum(lead, qualified, survey, proposal, negotiation, won, lost)No—Stage
pipelineTypeenum(new_construction, retrofit, service_agreement, expansion, other)No—Pipeline type
sourceunknownNo—Source
estimatedValueunknownNo—Estimated value
expectedCloseDateunknownNo—Expected close date
probabilityunknownNo—Probability
solutionFamiliesstring[]No—Solution families
scopeSummaryunknownNo—Scope summary
competitorNotesunknownNo—Competitor notes
winLossReasonunknownNo—Win loss reason
nextStepDescriptionunknownNo—Next step description
nextStepDateunknownNo—Next step date
bidDueDateunknownNo—Bid due date
budgetConfirmedbooleanNo—Budget confirmed
priorityunknownNo—Priority
lostReasonCategoryunknownNo—Lost reason category
technicalRequirementsunknownNo—Technical requirements
ownerUserIdunknownNo—ID of the associated owner user
engagementTypeenum(direct_to_end_user, subcontracted_by_upstream, prime_with_subcontractors, upstream_and_downstream, service_only, warranty_only, internal, other)No—Engagement type
endUserOrganizationIdunknownNo—ID of the associated end user organization
upstreamOrganizationIdunknownNo—ID of the associated upstream organization

On this page