Magidoc

UpdateOpportunityInput
Input Object

Fields

#

_id

ID !
Non-null

accountId

amount

approvalState

closeDate

competition

currency

customFields

Patches opportunity custom fields by Hive custom-field ID. Discover active IDs and types with getCustomFields(workspaceId, itemType: opportunity). Each entry changes or clears only its own field; omitted siblings and Salesforce sync metadata are preserved. Empty or null values clear the matching field. Unknown IDs and values that do not match the field type return an error.

decisionCriteria

description

expectedModifiedAt

Optional optimistic concurrency guard. Reject if the opportunity changed since it was read.

linkedGoalId

linkedProjectId

mutualActionPlanNoteId

name

nextStep

ownerId

paperProcess

pipelineId

primaryPersonIds

[ID !]

probability

risks

stageId

stageKey

teamIds

[ID !]

type

Business type: an option id from the workspace's business type setting (settings.crmFieldOptions.opportunityType). Built-in ids: new, existing, renewal, expansion, upsell, crossSell, partner, rescue.

whyNow

Usages

#

References

#

  • Argument input of field updateOpportunity from type Mutation