POST action not supported
/fscmRestApi/resources/11.13.18.05/replenishmentPolicyAssignmentSets/{PolicySetId}/child/PolicySegmentParameters
Request
-
PolicySetId(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=
-
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.
-
Upsert-Mode:
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
- application/json
object
-
DaysOfCoverBasis: string
Maximum Length:
4000
Basis to calculate days of cover. Valid values are History and Forecast. The default value is Forecast. -
DaysOfCoverBasisCode: integer
(int32)
Code that identifies the basis to calculate days of cover. A list of accepted values is defined in the lookup type ORA_MSC_REPL_DAYS_OF_COVER.
-
DefaultCarryingCostPercentage: integer
(int32)
Default value defined for the carrying cost percentage.
-
DefaultDailyDemand: number
Default value defined for the average daily demand.
-
DefaultEOQ: integer
(int32)
Default value defined for the economic order quantity.
-
DefaultOrderingCost: integer
(int32)
Default value defined for the ordering cost.
-
DefaultOrderQuantity: integer
(int32)
Default value defined for the order quantity.
-
DefaultStandardCost: integer
(int32)
Default value defined for the standard cost.
-
DeliveriesperTimePeriod: integer
Value that indicates the number of deliveries per time period.
-
EOQOverride: integer
(int32)
Manual override value defined for the economic order quantity.
-
ExtrapolationPercentage: integer
(int32)
Percentage value defined to multiply with the calculated average daily demand to get new average daily demand value.
-
FixedOrderCycleCalendar: string
Maximum Length:
240
Calendar used for the fixed order cycle policy type. -
FixedOrderCycleCalendarCode: number
Code that identifies the calendar.
-
HorizonforAverageDailyDemand: integer
(int32)
Number of days defined for considering forecast or history to calculate the average daily demand.
-
MaximumOverride: integer
(int32)
Manual override value defined for the maximum quantity or maximum days depending on policy unit of measure.
-
MaximumQuantityCalculationMethod: string
Maximum Length:
4000
Method used to calculate the maximum quantity. Valid values are Days of Cover, Minimum plus order quantity, and Minimum plus EOQ. The default value is Days of Cover. -
MaximumQuantityCalculationMethodCode: integer
(int32)
Code that identifies the method used to calculate the maximum quantity. A list of accepted values is defined in the lookup type ORA_MSC_REPL_MAX_CALC_METHOD.
-
MaximumQuantityDaysofCover: integer
(int32)
Value that indicates the maximum quantity days of cover.
-
MinimumOverride: integer
(int32)
Manual override value defined for the minimum quantity or minimum days depending on the policy unit of measure.
-
ObjectVersionNumber: integer
(int32)
Number of times the object has been updated.
-
OrderQuantityOverride: integer
(int32)
Manual override value defined for the order quantity.
-
ParLevelOverride: integer
(int32)
Manual override value defined for the par level.
-
ParMaximumQuantityOverride: integer
(int32)
Manual override value defined for the par maximum quantity.
-
ParTimePeriod: number
Number of days defined for the par replenishment time period.
-
PolicySetId: integer
(int64)
Value that uniquely identifies the policy assignment set.
-
PolicyType: string
Maximum Length:
4000
Type of policy. Valid values are Min-max planning, Fixed order cycle, ROP and order quantity, and ROP and EOQ. The default value is Min-max planning. -
PolicyTypeCode: integer
Code that identifies the policy type. A list of accepted values is defined in the lookup type ORA_MSC_REPL_POLICY_TYPE.
-
PolicyUOM: string
Maximum Length:
4000
Type of policy unit of measure. Valid values are Units and Days. The default value is Units. -
PolicyUOMCode: integer
(int32)
Code that identifies the policy unit of measure. A list of accepted values is defined in the lookup type ORA_MSC_REPL_POLICY_UOM.
-
ROPOverride: integer
(int32)
Manual override value defined for the reorder point quantity or reorder point days depending on the policy unit of measure.
-
SafetyStockCalculationMethod: string
Maximum Length:
4000
Method used to calculate the safety stock. Valid values are Days of cover and Service level based. The default value is Days of Cover. -
SafetyStockCalculationMethodCode: integer
(int32)
Code that identifies the method used to calculate the safety stock. A list of accepted values is defined in the lookup type ORA_MSC_REPL_SS_METHOD.
-
SafetyStockDaysofCover: integer
(int32)
Value that indicates the safety stock days of cover.
-
SafetyStockOverride: integer
(int32)
Manual override value defined for the safety stock.
-
SegmentId: integer
(int64)
Value that uniquely identifies the segment.
-
TargetServiceLevelPercentage: integer
(int32)
Percentage value defined for the target service level to calculate the safety stock.
Response
- application/json
Default Response
-
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.
object
-
CreatedBy: string
Read Only:
true
Maximum Length:64
User who created the segment parameters. -
CreationDate: string
(date-time)
Read Only:
true
Date when the user created the segment parameters. -
DaysOfCoverBasis: string
Maximum Length:
4000
Basis to calculate days of cover. Valid values are History and Forecast. The default value is Forecast. -
DaysOfCoverBasisCode: integer
(int32)
Code that identifies the basis to calculate days of cover. A list of accepted values is defined in the lookup type ORA_MSC_REPL_DAYS_OF_COVER.
-
DefaultCarryingCostPercentage: integer
(int32)
Default value defined for the carrying cost percentage.
-
DefaultDailyDemand: number
Default value defined for the average daily demand.
-
DefaultEOQ: integer
(int32)
Default value defined for the economic order quantity.
-
DefaultOrderingCost: integer
(int32)
Default value defined for the ordering cost.
-
DefaultOrderQuantity: integer
(int32)
Default value defined for the order quantity.
-
DefaultStandardCost: integer
(int32)
Default value defined for the standard cost.
-
DeliveriesperTimePeriod: integer
Value that indicates the number of deliveries per time period.
-
EOQOverride: integer
(int32)
Manual override value defined for the economic order quantity.
-
ExtrapolationPercentage: integer
(int32)
Percentage value defined to multiply with the calculated average daily demand to get new average daily demand value.
-
FixedOrderCycleCalendar: string
Maximum Length:
240
Calendar used for the fixed order cycle policy type. -
FixedOrderCycleCalendarCode: number
Code that identifies the calendar.
-
HorizonforAverageDailyDemand: integer
(int32)
Number of days defined for considering forecast or history to calculate the average daily demand.
-
LastUpdateDate: string
(date-time)
Read Only:
true
Date when the user most recently updated the segment parameters. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
User who most recently updated the segment parameters. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
Login that the user used when updating the segment parameters. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MaximumOverride: integer
(int32)
Manual override value defined for the maximum quantity or maximum days depending on policy unit of measure.
-
MaximumQuantityCalculationMethod: string
Maximum Length:
4000
Method used to calculate the maximum quantity. Valid values are Days of Cover, Minimum plus order quantity, and Minimum plus EOQ. The default value is Days of Cover. -
MaximumQuantityCalculationMethodCode: integer
(int32)
Code that identifies the method used to calculate the maximum quantity. A list of accepted values is defined in the lookup type ORA_MSC_REPL_MAX_CALC_METHOD.
-
MaximumQuantityDaysofCover: integer
(int32)
Value that indicates the maximum quantity days of cover.
-
MinimumOverride: integer
(int32)
Manual override value defined for the minimum quantity or minimum days depending on the policy unit of measure.
-
ObjectVersionNumber: integer
(int32)
Number of times the object has been updated.
-
OrderQuantityOverride: integer
(int32)
Manual override value defined for the order quantity.
-
ParLevelOverride: integer
(int32)
Manual override value defined for the par level.
-
ParMaximumQuantityOverride: integer
(int32)
Manual override value defined for the par maximum quantity.
-
ParTimePeriod: number
Number of days defined for the par replenishment time period.
-
PolicySetId: integer
(int64)
Value that uniquely identifies the policy assignment set.
-
PolicyType: string
Maximum Length:
4000
Type of policy. Valid values are Min-max planning, Fixed order cycle, ROP and order quantity, and ROP and EOQ. The default value is Min-max planning. -
PolicyTypeCode: integer
Code that identifies the policy type. A list of accepted values is defined in the lookup type ORA_MSC_REPL_POLICY_TYPE.
-
PolicyUOM: string
Maximum Length:
4000
Type of policy unit of measure. Valid values are Units and Days. The default value is Units. -
PolicyUOMCode: integer
(int32)
Code that identifies the policy unit of measure. A list of accepted values is defined in the lookup type ORA_MSC_REPL_POLICY_UOM.
-
ROPOverride: integer
(int32)
Manual override value defined for the reorder point quantity or reorder point days depending on the policy unit of measure.
-
SafetyStockCalculationMethod: string
Maximum Length:
4000
Method used to calculate the safety stock. Valid values are Days of cover and Service level based. The default value is Days of Cover. -
SafetyStockCalculationMethodCode: integer
(int32)
Code that identifies the method used to calculate the safety stock. A list of accepted values is defined in the lookup type ORA_MSC_REPL_SS_METHOD.
-
SafetyStockDaysofCover: integer
(int32)
Value that indicates the safety stock days of cover.
-
SafetyStockOverride: integer
(int32)
Manual override value defined for the safety stock.
-
SegmentId: integer
(int64)
Value that uniquely identifies the segment.
-
TargetServiceLevelPercentage: integer
(int32)
Percentage value defined for the target service level to calculate the safety stock.
array
Links
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Examples
This example describes how to create policy segment parameters.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSets/PolicySetId/child/PolicySegmentParametersPolicySetId/child/PolicySegmentParameters"
Example Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it updates.
{ "parts": [{ "id": "1", "path": "/replenishmentPolicyAssignmentSets/300100580499376/child/PolicySegmentParameters", "operation": "create", "payload": {"PolicyType": "Periodic automatic replenishment", "PolicyTypeCode":12, "SegmentId":300100182121952, "SafetyStockCalculationMethod": "Days of cover", "SafetyStockCalculationMethodCode":1, "DaysOfCoverBasisCode":2, "SafetyStockDaysofCover":3, "HorizonforAverageDailyDemand":10, "DaysOfCoverBasis": "Forecast", "MaximumQuantityCalculationMethod": "Days of cover", "MaximumQuantityDaysofCover":8, "ParTimePeriod": 90, "DeliveriesperTimePeriod": 20, "ParLevelOverride": 100, "ParMaximumQuantityOverride": 400 } },{ "id": "2", "path": "/replenishmentPolicyAssignmentSets/300100580499376/child/PolicySegmentParameters", "operation": "create", "payload": { "PolicyType": "Periodic automatic replenishment", "PolicyTypeCode":12, "SegmentId":300100182121953, "SafetyStockCalculationMethod": "Days of cover", "SafetyStockCalculationMethodCode":1, "DaysOfCoverBasisCode":2, "SafetyStockDaysofCover":3, "HorizonforAverageDailyDemand":10, "DaysOfCoverBasis": "Forecast", "MaximumQuantityCalculationMethod": "Days of cover", "MaximumQuantityDaysofCover":6, "ParTimePeriod": 50, "DeliveriesperTimePeriod": 30, "ParLevelOverride": 200, "ParMaximumQuantityOverride": 300}}]}
Example Response Body
The following example includes the contents of the response body in JSON format:
{ "parts": [ { "id": "1", "path": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSets/300100580499376/child/PolicySegmentParameters", "operation": "create", "payload": { "PolicyTypeCode": 12, "PolicyType": "Periodic automatic replenishment", "PolicyUOMCode": 12, "PolicyUOM": "Units", "SafetyStockCalculationMethodCode": 1, "SafetyStockCalculationMethod": "Days of cover", "SafetyStockDaysofCover": 3, "TargetServiceLevelPercentage": null, "HorizonforAverageDailyDemand": 10, "DaysOfCoverBasisCode": 2, "DaysOfCoverBasis": "Forecast", "ExtrapolationPercentage": null, "MaximumQuantityCalculationMethodCode": 1, "MaximumQuantityCalculationMethod": "Days of cover", "MaximumQuantityDaysofCover": 8, "FixedOrderCycleCalendarCode": null, "FixedOrderCycleCalendar": null, "DefaultDailyDemand": null, "DefaultOrderQuantity": null, "DefaultEOQ": null, "DefaultCarryingCostPercentage": null, "DefaultOrderingCost": null, "DefaultStandardCost": null, "SafetyStockOverride": null, "MinimumOverride": null, "MaximumOverride": null, "ROPOverride": null, "OrderQuantityOverride": null, "EOQOverride": null, "PolicySetId": 300100580499376, "SegmentId": 300100182121952, "ObjectVersionNumber": 1, "CreatedBy": "REPL_USER", "CreationDate": "2023-07-26T08:40:31+00:00", "LastUpdateDate": "2023-07-26T08:40:31.051+00:00", "LastUpdateLogin": "00C2EBB1D6D837BEE063B06515AC26B3", "LastUpdatedBy": "REPL_USER", "ParLevelOverride": 100, "ParMaximumQuantityOverride": 400, "ParTimePeriod": 90, "DeliveriesperTimePeriod": 20, "links": [ { "rel": "self", "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSets/300100580499376/child/PolicySegmentParameters/00030000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708000110F09C7F5FB00000000EACED00057708000110F084C09DE0", "name": "PolicySegmentParameters", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSets/300100580499376/child/PolicySegmentParameters/00030000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708000110F09C7F5FB00000000EACED00057708000110F084C09DE0", "name": "PolicySegmentParameters", "kind": "item" }, { "rel": "parent", "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSets/300100580499376", "name": "replenishmentPolicyAssignmentSets", "kind": "item" } ] } }, { "id": "2", "path": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSets/300100580499376/child/PolicySegmentParameters", "operation": "create", "payload": { "PolicyTypeCode": 12, "PolicyType": "Periodic automatic replenishment", "PolicyUOMCode": 12, "PolicyUOM": "Units", "SafetyStockCalculationMethodCode": 1, "SafetyStockCalculationMethod": "Days of cover", "SafetyStockDaysofCover": 3, "TargetServiceLevelPercentage": null, "HorizonforAverageDailyDemand": 10, "DaysOfCoverBasisCode": 2, "DaysOfCoverBasis": "Forecast", "ExtrapolationPercentage": null, "MaximumQuantityCalculationMethodCode": 1, "MaximumQuantityCalculationMethod": "Days of cover", "MaximumQuantityDaysofCover": 6, "FixedOrderCycleCalendarCode": null, "FixedOrderCycleCalendar": null, "DefaultDailyDemand": null, "DefaultOrderQuantity": null, "DefaultEOQ": null, "DefaultCarryingCostPercentage": null, "DefaultOrderingCost": null, "DefaultStandardCost": null, "SafetyStockOverride": null, "MinimumOverride": null, "MaximumOverride": null, "ROPOverride": null, "OrderQuantityOverride": null, "EOQOverride": null, "PolicySetId": 300100580499376, "SegmentId": 300100182121953, "ObjectVersionNumber": 1, "CreatedBy": "REPL_USER", "CreationDate": "2023-07-26T08:40:31.037+00:00", "LastUpdateDate": "2023-07-26T08:40:31.102+00:00", "LastUpdateLogin": "00C2EBB1D6D837BEE063B06515AC26B3", "LastUpdatedBy": "REPL_USER", "ParLevelOverride": 200, "ParMaximumQuantityOverride": 300, "ParTimePeriod": 50, "DeliveriesperTimePeriod": 30, "links": [ { "rel": "self", "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSets/300100580499376/child/PolicySegmentParameters/00030000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708000110F09C7F5FB00000000EACED00057708000110F084C09DE1", "name": "PolicySegmentParameters", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSets/300100580499376/child/PolicySegmentParameters/00030000000EACED00057708FFFFFFFFFFFFFFFF0000000EACED00057708000110F09C7F5FB00000000EACED00057708000110F084C09DE1", "name": "PolicySegmentParameters", "kind": "item" }, { "rel": "parent", "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSets/300100580499376", "name": "replenishmentPolicyAssignmentSets", "kind": "item" } ] } } ] }