Opportunities / Entity

Update Opportunity

This endpoint allows you to update a specific Opportunity. If the specified Opportunity does not exist, the response will be a "bad request".

You will only be able to update a Opportunity after first providing the Session Key. To know how you can obtain the Session Key, go to Authentication.

HEADERS

ParameterValueDescription
Content-Typeapplication/jsonLanguage in which all request and response bodies are encoded
Accept*/*Any data of whatever mime type is accepted
X-Session-KeyAUTH_TOKENThis field must be completed with the token obtained at the authentication

REQUEST

This endpoint allows updating the information of a specific Opportunity. In order to update an Opportunity, you just have to specify the attributes you want to modify and complete with the up to date information. It is not necessary to send all attributes.

AttributeTypeDescription
accountId1IntegerFirst Account to whom the Opportunity is linked to (see Accounts resource)
accountId2IntegerSecond Account to whom the Opportunity is linked to (see Accounts resource)
accountId3IntegerThird Account to whom the Opportunity is linked to (see Accounts resource)
address1StringFirst address to whom the Opportunity is linked
address2StringSecond address to whom the Opportunity is linked
branchIdIntegerBranch to whom the Opportunity has been assigned (see Branches resource)
cityStringCity name
closedDateStringDate when the Opportunity was closed
commentsStringComment added to the Opportunity
countryIdIntegerCountry ID (see Countries resource) of the Opportunity address
currencyIdIntegerCurrency ID (see Currencies resource) related to the Opportunity amount
extIdStringExternal ID of the Opportunity from a third party system (ERP, CRM, Accounting System)
geocodedBooleanIf true, the Opportunity has been geolocated
geocodingAccuracyIntegerAccuracy radius based on information about cell towers and WiFi nodes that the mobile client can detect
latitudeNumberGeocode address for the latitude coordinates
longitudeNumberGeocode address for the longitude coordinates
lostDateStringDate when the Opportunity was lost
permissionLevelStringDefines the visibility of the Opportunity. Set from 1 to 5 being 5 the highest level of permission
postcodeStringThe Opportunity's address postal code
readOnlyBooleanIf true, the Opportunity can not be modified or deleted
referenceStringOpportunity's name
regionStringRegion/State name
salesForeCastDateStringForecast sale date
salesProbability (Required)IntegerProbability of sale, it is a number between 0 and 10
salesRepIdIntegerUnique identifier of the User associated to the Opportunity (see Users resource)
type_idIntegerType of the Opportunity (see Types resource)
statusIdIntegerStatus of the Opportunity (see Statues resource)
totalNumberTotal amount of the Opportunity
wonDateStringDate when the Opportunity was won

RESPONSE

Returns a JSON with information about the Opportunity just updated.

AttributeDescription
MessageShows the operation status

RESPONSE CODES

StatusDescription
200 OKShows if operation succeeded
400 Bad RequestShows when an invalid request or the requested service is not available
put/opportunities/{ID}

Request

  • Base URL: https://api.forcemanager.com/api/v4
  • URL: https://api.forcemanager.com/api/v4/opportunities/{ID}
  • Auth: API key in header X-Session-Key

Headers

Acceptstring

Request body

salesProbabilityinteger
totalnumber
commentsstring

Response

Update Opportunity

Changes

No recorded changes to this operation across all 1 revision of this API.