PUT api/OpportunityProducts/{id}

Update an existing Product. This is not a partial update therefore, please pass in the full Process object to your request. For partial updates, use the PATCH endpoint

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Record Id

globally unique identifier

Required

Body Parameters

Serialized Product record in the body of the request

OpportunityProduct
NameDescriptionTypeAdditional information
Total

decimal number

None.

Quantity

decimal number

None.

OpportunityID

globally unique identifier

None.

ProductID

globally unique identifier

None.

OpportunityProductID

globally unique identifier

None.

CreateDate

date

None.

EditDate

date

None.

Discount

decimal number

None.

Price

decimal number

None.

ItemNumber

string

None.

Name

string

None.

Cost

decimal number

None.

DiscountPrice

decimal number

None.

CustomFields

Dictionary of string [key] and Object [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "Total": 1.0,
  "Quantity": 2.0,
  "OpportunityID": "898b04a3-646b-4a0d-9416-cfcaf635a9c6",
  "ProductID": "ee4e3f82-30bd-454c-965a-f4cfe30afc25",
  "OpportunityProductID": "b938dadd-9fd0-4761-af66-670ad77c29b9",
  "CreateDate": "2024-05-04T17:48:57Z",
  "EditDate": "2024-05-04T17:48:57Z",
  "Discount": 7.0,
  "Price": 8.0,
  "ItemNumber": "sample string 9",
  "Name": "sample string 10",
  "Cost": 11.0,
  "DiscountPrice": 12.0,
  "CustomFields": {
    "sample string 1": {},
    "sample string 3": {}
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.