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
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Record Id |
globally unique identifier |
Required |
Body Parameters
Serialized Product record in the body of the request
OpportunityProduct| Name | Description | Type | Additional 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. |
|
| 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": "a3b7811b-6634-49dd-928f-02ef2b000649",
"ProductID": "41284469-5b10-4899-b2ee-363af23161ec",
"OpportunityProductID": "3dc5a3f8-9d92-4c55-adf5-e54f6a8e4519",
"CreateDate": "2025-10-24T00:30:03Z",
"Discount": 6.0,
"Price": 7.0,
"ItemNumber": "sample string 8",
"Name": "sample string 9",
"Cost": 10.0,
"DiscountPrice": 11.0,
"CustomFields": {
"sample string 1": {},
"sample string 3": {}
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.