Update a product relationship on a product group

patch

/crmRestApi/resources/11.13.18.05/setupSalesCatalogs/{ProdGroupId}/child/ProductGroupProductSetup/{ProdGroupItemsId}

Request

Path Parameters
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : EligibilityRules
Type: array
Title: EligibilityRules
The eligibility rules resource is used to view, create, update, and delete the various eligibility rules so that only a few products are available for selection at run time. For each item, you can add one or more eligibility rules specifying whether a rule is valid for a particular country or for all countries.
Show Source
Nested Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : setupSalesCatalogs-ProductGroupProductSetup-item-response
Type: object
Show Source
Nested Schema : EligibilityRules
Type: array
Title: EligibilityRules
The eligibility rules resource is used to view, create, update, and delete the various eligibility rules so that only a few products are available for selection at run time. For each item, you can add one or more eligibility rules specifying whether a rule is valid for a particular country or for all countries.
Show Source
Nested Schema : setupSalesCatalogs-ProductGroupProductSetup-EligibilityRules-item-response
Type: object
Show Source
Back to Top

Examples

cURL Command

The following example shows how to update the product relationship on a product group by submitting a PATCH request on the REST resource using cURL.

curl -u <username:password> \ -X PATCH https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/setupSalesCatalogs/300100074788637/child/ProductGroupProductSetup/300100074788641

Example of Request Body

The following shows an example of the request body in JSON format.

{
   "StartDate" : "2016-06-09T00:00:00-07:00"
}

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "ProdGroupItemsId": 300100074788641,
  "StartDate": "2016-06-09T07:00:00+00:00",
  "ProdGroupId": 300100074788637,
  "InventoryItemId": 999997500678267,
  "InvOrgId": 204,
  "DisplayOrderNum": null,
  "ActiveFlag": true,
  "EndDate": null,
  "Description": " Oracle Utilities CIS Adapter, Generic",
  "LongDescription": "License/Applications/Vertical ERP Applications/Oracle Utilities Applications/Oracle Utilities Network Management/Oracle Utilities Network Management - Other/ Oracle Utilities CIS Adapter, Generic",
  "ProductNumber": "QP8",
  ...
}
Back to Top