All operations
OPPORTUNITIES
Updates an existing opportunity.
Full replace: every field is overwritten with the value in the body, so send the complete opportunity. Assigned reasons, competitors and UDF values are replaced by the lists in the body; omitting a list removes them all. Make, model, serial number, stock number and year are only updated when `EquipmentId` does not match an existing equipment record. A `Quantity` of 0 is saved as 1.
PUT
/api/v2/opportunities/{opportunityId}Authentication
Choose one supported method for this request.
Parameters
opportunityIdpathinteger · int32requiredThe ID of the opportunity to update.
Request body
The complete opportunity.
opportunityIdinteger · int32namestringcompanyIdinteger · int32contactIdinteger · int32groupIdinteger · int32userIdinteger · int32branchIdinteger · int32commentsstringstatusIdinteger · int32probabilitynumber · doublereferenceNostringopenDatestring · datecloseDatestring · datenullabledecisionDatestring · datenullableexpirationDatestring · datenullabledeliveryDatestring · datenullabledeliveryStatestringdeliveryCountystringdecisionCommentsstringlostSalebooleanlostRentalbooleansaleTypeIdinteger · int32transactionTypeIdinteger · int32amountnumber · doublerentalIntervalstringrentalRatenumber · doublerentalDurationinteger · int32equipmentIdinteger · int32makestringmodelstringserialNostringstockNostringyearstringhoursnumber · doublequantityinteger · int32attachmentsstringoptionsstringadditionalEquipmentstring
Responses
Opportunity updated successfully.
Standard response envelope
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors
opportunityIdinteger · int32userIdinteger · int32userstringequipmentIdinteger · int32companyIdinteger · int32companyNamestringcontactIdinteger · int32contactstringstatusIdinteger · int32statusstringinternalResultstringgroupIdinteger · int32groupstringnamestringamountnumber · doublecloseDatestring · datenullableprobabilitynumber · doubledeletedbooleanopenDatestring · datebranchIdinteger · int32branchstringlostSalebooleansaleTypeIdinteger · int32saleTypestringtransactionTypeIdinteger · int32transactionTypestringmakestringmodelstringserialNostringstockNostringyearstringhoursinteger · int32qtyinteger · int32attachmentsstringoptionsstringadditionalEquipmentstringcommentsstringdecisionDatestring · datenullabledeliveryDatestring · datenullabledeliveryStatestringdeliveryCountystringnullabledecisionCommentsstringexpirationDatestring · datenullablereferenceNostringlostRentalbooleanrentalRatenumber · doublerentalIntervalstringrentalDurationinteger · int32