updateOpportunity

Purpose:

This method used to update the opportunity information.

Request URL:

https://api.apptivo.com/app/dao/v6/opportunities?a=update&opportunityData={OPPORTUNITY_DATA_VALUES}&attributeNames=[OPPORTUNITY_DATA_NAME]&objectId=4&opportunityId=OPPORTUNITY_ID&isEmailAddressUpdate=EMAIL_UPDATE&apiKey=API_KEY&accesKey=ACCESS_KEY

Request Parameters:

Parameter Data Type Description
OPPORTUNITY_ID Opportunity ID
OPPORTUNITY_DATA_VALUES Updated field value
OPPORTUNITY_DATA_NAME Updated field name
EMAIL_UPDATE If Email updated, it should be true or false by default, it is false
SESSION_KEY Apptivo session key from username and password

* – Mandatory parameters

Output:

This will return the details of updated lead data with JSON format.

Sample Request URL:

https://app.apptivo.com/app/dao/v6/opportunities?a=update&opportunityData={"id":"93536","opportunityId":93536,"opportunityName":"Test opportunitesupdate","opportunityNameNotAnalysed":"Test opportunites","salesStageName":"Prospecting","salesStageId":229771,"leadSourceTypeName":"Cold Call","leadSourceTypeId":29685786,"assignedToObjectRefName":"Db2Es s","assignedToObjectRefId":77021,"assignedToObjectId":8,"closeDate":"07/10/2017","probability":"5.00","amount":0,"actualAmount":0,"currencyCode":"INR","campaignName":"","territoryName":"","isMultiCurrency":"N","objectStatus":"0","opportunityHistory":"","isActive":"Y","propertiesAppEnabled":"N","salesStageHistory":[],"labels":[],"removeLabels":[],"addresses":[],"removeAddresses":[],"customAttributes":[],"notes":[],"propertyList":[],"inquiryTypes":[],"items":[],"phoneNumbers":[],"emailAddresses":[],"removePhoneNumbers":[],"removeEmailAddresses":[],"assigneeManagers":[],"isLocked":"N","accounts":[],"firmId":218079,"lastContactedDate":"Not Contacted","createdBy":76130,"lastUpdatedBy":76130,"createdByName":"Db2Es s","creationDate":"Oct 07, 2017 05:44:26 PM","lastUpdateDate":"Oct 07, 2017 05:44:26 PM","lastUpdatedByName":"Db2Es s","version":3,"followUpDate":null,"sales_stage_select":229771,"amountCurrencyCode":"INR","tags":[],"isDirtypage":null,"opportunityTypeName":"New Business","opportunityTypeId":59138}
&opportunityId=93536
&attributeName=["opportunityName","opportunityTypeName"]
&isCustomerTerritoryUpdate=false