Space Docs
API ReferenceOpportunity

opportunity.create

Type: Mutation · Auth: Workspace-aware

Input

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

Example

{
  "customerId": "550e8400-e29b-41d4-a716-446655440000",
  "primaryContactId": null,
  "siteId": null,
  "title": "Example Title",
  "stage": "lead",
  "pipelineType": "new_construction",
  "budgetConfirmed": false
}

On this page