Space Docs
Domain Model

Opportunity

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
customerIdstringYesID of the associated customer
primaryContactIdstringNoID of the associated primary contact
siteIdstringNoID of the associated site
titlestringYesTitle
stageenum(lead, qualified, survey, proposal, negotiation, won, lost)YesStage
pipelineTypeenum(new_construction, retrofit, service_agreement, expansion, other)YesPipeline type
sourceenum(referral, website, cold_call, existing_customer, partner, trade_show, portal_request, other)NoSource
estimatedValuenumberNoEstimated value
expectedCloseDatestring.date-timeNoExpected close date
probabilityintegerNoProbability
solutionFamiliesstring[]NoSolution families
scopeSummarystringNoScope summary
competitorNotesstringNoCompetitor notes
winLossReasonstringNoWin loss reason
nextStepDescriptionstringNoNext step description
nextStepDatestring.date-timeNoNext step date
bidDueDatestring.date-timeNoBid due date
budgetConfirmedbooleanYesBudget confirmed
priorityenum(low, medium, high, urgent)NoPriority
lostReasonCategoryenum(price, timing, competitor, scope_mismatch, no_decision, relationship, other)NoLost reason category
technicalRequirementsstringNoTechnical requirements
weightedValueunknownYesWeighted value
closedAtunknownYesClosed at
ownerUserIdstringNoID of the associated owner user
workspaceIdstringYesID of the associated workspace
visibilityModeunknownYesVisibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
customerIdstringYesID of the associated customer
primaryContactIdstringNoID of the associated primary contact
siteIdstringNoID of the associated site
titlestringYesTitle
stageenum(lead, qualified, survey, proposal, negotiation, won, lost)Yes"lead"Stage
pipelineTypeenum(new_construction, retrofit, service_agreement, expansion, other)YesPipeline type
sourceenum(referral, website, cold_call, existing_customer, partner, trade_show, portal_request, other)NoSource
estimatedValuenumberNoEstimated value
expectedCloseDatestring.date-timeNoExpected close date
probabilityintegerNoProbability
solutionFamiliesstring[]NoSolution families
scopeSummarystringNoScope summary
competitorNotesstringNoCompetitor notes
winLossReasonstringNoWin loss reason
nextStepDescriptionstringNoNext step description
nextStepDatestring.date-timeNoNext step date
bidDueDatestring.date-timeNoBid due date
budgetConfirmedbooleanYesfalseBudget confirmed
priorityenum(low, medium, high, urgent)NoPriority
lostReasonCategoryenum(price, timing, competitor, scope_mismatch, no_decision, relationship, other)NoLost reason category
technicalRequirementsstringNoTechnical requirements
ownerUserIdstringNoID 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
endUserOrganizationIdunknownNoID of the associated end user organization
upstreamOrganizationIdunknownNoID of the associated upstream organization
workspaceIdstringNoID of the associated workspace
visibilityModeunknownNoVisibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
customerIdstringNoID of the associated customer
primaryContactIdstringNoID of the associated primary contact
siteIdstringNoID of the associated site
titlestringNoTitle
stageenum(lead, qualified, survey, proposal, negotiation, won, lost)NoStage
pipelineTypeenum(new_construction, retrofit, service_agreement, expansion, other)NoPipeline type
sourceenum(referral, website, cold_call, existing_customer, partner, trade_show, portal_request, other)NoSource
estimatedValuenumberNoEstimated value
expectedCloseDatestring.date-timeNoExpected close date
probabilityintegerNoProbability
solutionFamiliesstring[]NoSolution families
scopeSummarystringNoScope summary
competitorNotesstringNoCompetitor notes
winLossReasonstringNoWin loss reason
nextStepDescriptionstringNoNext step description
nextStepDatestring.date-timeNoNext step date
bidDueDatestring.date-timeNoBid due date
budgetConfirmedbooleanNoBudget confirmed
priorityenum(low, medium, high, urgent)NoPriority
lostReasonCategoryenum(price, timing, competitor, scope_mismatch, no_decision, relationship, other)NoLost reason category
technicalRequirementsstringNoTechnical requirements
ownerUserIdstringNoID 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)NoEngagement type
endUserOrganizationIdunknownNoID of the associated end user organization
upstreamOrganizationIdunknownNoID of the associated upstream organization

On this page