Update one product rule
patch
/fscmRestApi/resources/11.13.18.05/channelPrograms/{ProgramId}/child/productRules/{ProgramLineId}
Request
Path Parameters
-
ProgramId(required): integer(int64)
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
-
ProgramLineId(required): integer
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
Header Parameters
-
Metadata-Context: string
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".
-
REST-Framework-Version: string
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
- application/json
Root Schema : schema
Type:
Show Source
object-
DFF: array
DFF
-
DiscountType: string
Type of discount. A list of accepted values is defined in the lookup type ORA_CJM_LINE_DISCOUNT_TYPE.
-
DiscountTypeCode: string
Maximum Length:
30Abbreviation that identifies the type of discount. -
DiscountValue: number
Value of the discount.
-
FromDate: string
(date)
Date when the product rule becomes applicable.
-
Item: string
Name of the item in the inventory.
-
ItemDescription: string
Description of the item in the inventory.
-
ItemId: string
Maximum Length:
240Value that uniquely identifies the item in the inventory. -
ItemLevel: string
Level at which discounts are defined. Valid values include Item and All Items. A list of accepted values is defined in the lookup type ORA_CJM_ITEM_LEVEL.
-
ItemLevelCode: string
Maximum Length:
30Abbreviation that identifies the level at which discounts are defined. -
MaximumQuantity: number
Maximum quantity allowed for each product rule.
-
SupplierItem: string
Maximum Length:
255Name of the supplier item. -
SupplierItemDescription: string
Maximum Length:
255Description of the supplier item. -
SupplierItemId: integer
(int64)
Value that uniquely identifies the supplier item.
-
ToDate: string
(date)
Date when the product rule is no longer applicable.
-
UnitOfMeasure: string
Unit of measure of the item for pricing.
-
UOMCode: string
Maximum Length:
30Abbreviation that identifies the unit of measure for pricing.
Nested Schema : channelPrograms-productRules-DFF-item-patch-request
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context SegmentMaximum Length:30Context Segment -
__FLEX_Context_DisplayValue: string
Title:
Context SegmentContext Segment -
ProgramLineId: integer
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
Root Schema : channelPrograms-productRules-item-response
Type:
Show Source
object-
CreatedBy: string
Read Only:
trueMaximum Length:64Product Rules -
CreationDate: string
(date-time)
Read Only:
trueProduct Rules -
DFF: array
DFF
-
DiscountType: string
Type of discount. A list of accepted values is defined in the lookup type ORA_CJM_LINE_DISCOUNT_TYPE.
-
DiscountTypeCode: string
Maximum Length:
30Abbreviation that identifies the type of discount. -
DiscountValue: number
Value of the discount.
-
FromDate: string
(date)
Date when the product rule becomes applicable.
-
Item: string
Name of the item in the inventory.
-
ItemDescription: string
Description of the item in the inventory.
-
ItemId: string
Maximum Length:
240Value that uniquely identifies the item in the inventory. -
ItemLevel: string
Level at which discounts are defined. Valid values include Item and All Items. A list of accepted values is defined in the lookup type ORA_CJM_ITEM_LEVEL.
-
ItemLevelCode: string
Maximum Length:
30Abbreviation that identifies the level at which discounts are defined. -
LastUpdateDate: string
(date-time)
Read Only:
trueProduct Rules -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64Product Rules -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MaximumQuantity: number
Maximum quantity allowed for each product rule.
-
ProgramId: integer
(int64)
Name that identifies the qualifier used in the channel program qualification.
-
ProgramLineId: integer
Value that uniquely identifies the product rule. It's a primary key that the application generates when it creates the product rule.
-
SupplierItem: string
Maximum Length:
255Name of the supplier item. -
SupplierItemDescription: string
Maximum Length:
255Description of the supplier item. -
SupplierItemId: integer
(int64)
Value that uniquely identifies the supplier item.
-
ToDate: string
(date)
Date when the product rule is no longer applicable.
-
UnitOfMeasure: string
Unit of measure of the item for pricing.
-
UOMCode: string
Maximum Length:
30Abbreviation that identifies the unit of measure for pricing.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : channelPrograms-productRules-DFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context SegmentMaximum Length:30Context Segment -
__FLEX_Context_DisplayValue: string
Title:
Context SegmentContext Segment -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProgramLineId: integer
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Links
- DFF
-
Parameters:
- ProgramId:
$request.path.ProgramId - ProgramLineId:
$request.path.ProgramLineId
- ProgramId: