Update parameters for one segment

patch

/fscmRestApi/resources/11.13.18.05/replenishmentPolicyAssignmentSetsV2/{PolicySetId}/child/PolicySegmentParameters/{SegmentId}

Request

Path Parameters
  • 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=
  • 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
  • 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
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 : replenishmentPolicyAssignmentSetsV2-PolicySegmentParameters-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to update parameters for segments.

Example 1

This example describes how to update parameters for one segment.

Example 1 cURL Command

Use the following cURL command to submit a request on the REST resource.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/PolicySetId/child/PolicySegmentParameters/SegmentId"
For example:
curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691298"

Example 1 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.

{
    "PolicyTypeCode": 11,
    "PolicyUOMCode": 12,
    "SafetyStockCalculationMethodCode": 1,
    "SafetyStockDaysofCover": 3,
    "TargetServiceLevelPercentage": null,
    "HorizonforAverageDailyDemand": 15,
    "DaysOfCoverBasisCode": 2,
    "ExtrapolationPercentage": null,
    "FixedOrderCycleCalendarCode": null,
    "MaximumQuantityCalculationMethodCode": 1,
    "MaximumQuantityDaysofCover": null,
    "DefaultDailyDemand": 300,
    "DefaultOrderQuantity": null,
    "DefaultEOQ": null,
    "DefaultCarryingCostPercentage": 60,
    "DefaultOrderingCost": 120,
    "DefaultStandardCost": 150,
    "SafetyStockOverride": 60,
    "MinimumOverride": null,
    "MaximumOverride": null,
    "ROPOverride": 100,
    "OrderQuantityOverride": null,
    "EOQOverride": 250,
    "ParLevelOverride": null,
    "ParMaximumQuantityOverride": null,
    "ParTimePeriod": null,
    "DeliveriesPERTimePeriod": null,
    "SegmentName": "Segment1"
}

Example 1 Response Body

The following example includes the contents of the response body in JSON format:
{
    "PolicyTypeCode": 11,
    "PolicyType": "ROP and EOQ",
    "PolicyUOMCode": 12,
    "PolicyUOM": "Units",
    "SafetyStockCalculationMethodCode": 1,
    "SafetyStockCalculationMethod": "Days of cover",
    "SafetyStockDaysofCover": 3,
    "TargetServiceLevelPercentage": null,
    "HorizonforAverageDailyDemand": 15,
    "DaysOfCoverBasisCode": 2,
    "DaysOfCoverBasis": "Forecast",
    "ExtrapolationPercentage": null,
    "MaximumQuantityCalculationMethodCode": null,
    "MaximumQuantityCalculationMethod": null,
    "MaximumQuantityDaysofCover": null,
    "FixedOrderCycleCalendarCode": null,
    "FixedOrderCycleCalendar": null,
    "DefaultDailyDemand": 300,
    "DefaultOrderQuantity": null,
    "DefaultEOQ": null,
    "DefaultCarryingCostPercentage": 60,
    "DefaultOrderingCost": 120,
    "DefaultStandardCost": 150,
    "SafetyStockOverride": 60,
    "MinimumOverride": null,
    "MaximumOverride": null,
    "ROPOverride": 100,
    "OrderQuantityOverride": null,
    "EOQOverride": 250,
    "SegmentId": 300100206691298,
    "SegmentName": "Segment1",
    "SegmentDescription": null,
    "ObjectVersionNumber": 2,
    "CreatedBy": "REPL_USER",
    "CreationDate": "2024-07-31T04:59:33+00:00",
    "LastUpdateDate": "2024-07-31T05:09:45+00:00",
    "LastUpdateLogin": "1D693F29DDC3A611E0633837060A48DB",
    "LastUpdatedBy": "REPL_USER",
    "ParLevelOverride": null,
    "ParMaximumQuantityOverride": null,
    "ParTimePeriod": null,
    "DeliveriesPERTimePeriod": null,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691298",
            "name": "PolicySegmentParameters",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691298",
            "name": "PolicySegmentParameters",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011",
            "name": "replenishmentPolicyAssignmentSetsV2",
            "kind": "item"
        }
    ]
}

Example 2

This example describes how to update parameters for all segments.

Example 2 cURL Command

Use the following cURL command to submit a request on the REST resource.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/PolicySetId/child/PolicySegmentParameters/"

Example 2 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": "/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691298",

"operation": "update",

"payload": 

{
    "PolicyTypeCode": 11,
    "PolicyUOMCode": 12,
    "SafetyStockCalculationMethodCode": 1,
    "SafetyStockDaysofCover": 3,
    "TargetServiceLevelPercentage": null,
    "HorizonforAverageDailyDemand": 15,
    "DaysOfCoverBasisCode": 2,
    "ExtrapolationPercentage": null,
    "FixedOrderCycleCalendarCode": null,
    "MaximumQuantityCalculationMethodCode": 1,
    "MaximumQuantityDaysofCover": null,
    "DefaultDailyDemand": 300,
    "DefaultOrderQuantity": null,
    "DefaultEOQ": null,
    "DefaultCarryingCostPercentage": 60,
    "DefaultOrderingCost": 120,
    "DefaultStandardCost": 150,
    "SafetyStockOverride": 60,
    "MinimumOverride": null,
    "MaximumOverride": null,
    "ROPOverride": 100,
    "OrderQuantityOverride": null,
    "EOQOverride": 250,
    "ParLevelOverride": null,
    "ParMaximumQuantityOverride": null,
    "ParTimePeriod": null,
    "DeliveriesPERTimePeriod": null,
    "SegmentName": "Segment1"

    
}},{
    
   
"id": "2",

"path": "/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691305",

"operation": "update",

"payload": {
    "PolicyTypeCode": 10,
    "PolicyUOMCode": 13,
    "SafetyStockCalculationMethodCode": 1,
    "SafetyStockDaysofCover": 3,
    "TargetServiceLevelPercentage": null,
    "HorizonforAverageDailyDemand": 20,
    "DaysOfCoverBasisCode": 1,
    "ExtrapolationPercentage": null,
    "MaximumQuantityCalculationMethodCode": 1,
    "MaximumQuantityDaysofCover": null,
    "FixedOrderCycleCalendarCode": null,
"DefaultDailyDemand": 250,
    "DefaultOrderQuantity": 150,
    "DefaultEOQ": null,
    "DefaultCarryingCostPercentage": null,
    "DefaultOrderingCost": null,
    "DefaultStandardCost": null,
    "SafetyStockOverride": 100,
    "MinimumOverride": null,
    "MaximumOverride": null,
    "ROPOverride": 200,
    "OrderQuantityOverride": 80,
    "EOQOverride": null,
    "ParLevelOverride": null,
    "ParMaximumQuantityOverride": null,
    "ParTimePeriod": null,
    "DeliveriesPERTimePeriod": null,
    "SegmentName": "Segment2"

}}]}

Example 1 Response Body

The following example includes the contents of the response body in JSON format:
{
    "parts": [
        {
            "id": "1",
            "path": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691298",
            "operation": "update",
            "payload": {
                "PolicyTypeCode": 11,
                "PolicyType": "ROP and EOQ",
                "PolicyUOMCode": 12,
                "PolicyUOM": "Units",
                "SafetyStockCalculationMethodCode": 1,
                "SafetyStockCalculationMethod": "Days of cover",
                "SafetyStockDaysofCover": 3,
                "TargetServiceLevelPercentage": null,
                "HorizonforAverageDailyDemand": 15,
                "DaysOfCoverBasisCode": 2,
                "DaysOfCoverBasis": "Forecast",
                "ExtrapolationPercentage": null,
                "MaximumQuantityCalculationMethodCode": null,
                "MaximumQuantityCalculationMethod": null,
                "MaximumQuantityDaysofCover": null,
                "FixedOrderCycleCalendarCode": null,
                "FixedOrderCycleCalendar": null,
                "DefaultDailyDemand": 300,
                "DefaultOrderQuantity": null,
                "DefaultEOQ": null,
                "DefaultCarryingCostPercentage": 60,
                "DefaultOrderingCost": 120,
                "DefaultStandardCost": 150,
                "SafetyStockOverride": 60,
                "MinimumOverride": null,
                "MaximumOverride": null,
                "ROPOverride": 100,
                "OrderQuantityOverride": null,
                "EOQOverride": 250,
                "SegmentId": 300100206691298,
                "SegmentName": "Segment1",
                "SegmentDescription": null,
                "ObjectVersionNumber": 3,
                "CreatedBy": "REPL_USER",
                "CreationDate": "2024-07-31T04:59:33+00:00",
                "LastUpdateDate": "2024-07-31T05:12:31+00:00",
                "LastUpdateLogin": "1D67D8BAE02411F7E0635A77060ABCF1",
                "LastUpdatedBy": "REPL_USER",
                "ParLevelOverride": null,
                "ParMaximumQuantityOverride": null,
                "ParTimePeriod": null,
                "DeliveriesPERTimePeriod": null,
                "links": [
                    {
                        "rel": "self",
                        "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691298",
                        "name": "PolicySegmentParameters",
                        "kind": "item",
                        "properties": {
                            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378"
                        }
                    },
                    {
                        "rel": "canonical",
                        "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691298",
                        "name": "PolicySegmentParameters",
                        "kind": "item"
                    },
                    {
                        "rel": "parent",
                        "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011",
                        "name": "replenishmentPolicyAssignmentSetsV2",
                        "kind": "item"
                    }
                ]
            }
        },
        {
            "id": "2",
            "path": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691305",
            "operation": "update",
            "payload": {
                "PolicyTypeCode": 10,
                "PolicyType": "ROP and order quantity",
                "PolicyUOMCode": 13,
                "PolicyUOM": "Days",
                "SafetyStockCalculationMethodCode": 1,
                "SafetyStockCalculationMethod": "Days of cover",
                "SafetyStockDaysofCover": 3,
                "TargetServiceLevelPercentage": null,
                "HorizonforAverageDailyDemand": 20,
                "DaysOfCoverBasisCode": 1,
                "DaysOfCoverBasis": "History",
                "ExtrapolationPercentage": null,
                "MaximumQuantityCalculationMethodCode": null,
                "MaximumQuantityCalculationMethod": null,
                "MaximumQuantityDaysofCover": null,
                "FixedOrderCycleCalendarCode": null,
                "FixedOrderCycleCalendar": null,
                "DefaultDailyDemand": 250,
                "DefaultOrderQuantity": 150,
                "DefaultEOQ": null,
                "DefaultCarryingCostPercentage": null,
                "DefaultOrderingCost": null,
                "DefaultStandardCost": null,
                "SafetyStockOverride": 100,
                "MinimumOverride": null,
                "MaximumOverride": null,
                "ROPOverride": 200,
                "OrderQuantityOverride": 80,
                "EOQOverride": null,
                "SegmentId": 300100206691305,
                "SegmentName": "Segment2",
                "SegmentDescription": null,
                "ObjectVersionNumber": 2,
                "CreatedBy": "REPL_USER",
                "CreationDate": "2024-07-31T04:59:33.079+00:00",
                "LastUpdateDate": "2024-07-31T05:12:31.007+00:00",
                "LastUpdateLogin": "1D67D8BAE02411F7E0635A77060ABCF1",
                "LastUpdatedBy": "REPL_USER",
                "ParLevelOverride": null,
                "ParMaximumQuantityOverride": null,
                "ParTimePeriod": null,
                "DeliveriesPERTimePeriod": null,
                "links": [
                    {
                        "rel": "self",
                        "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691305",
                        "name": "PolicySegmentParameters",
                        "kind": "item",
                        "properties": {
                            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
                        }
                    },
                    {
                        "rel": "canonical",
                        "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011/child/PolicySegmentParameters/300100206691305",
                        "name": "PolicySegmentParameters",
                        "kind": "item"
                    },
                    {
                        "rel": "parent",
                        "href": "https://servername/fscmRestApi/resources/version/replenishmentPolicyAssignmentSetsV2/300100620713011",
                        "name": "replenishmentPolicyAssignmentSetsV2",
                        "kind": "item"
                    }
                ]
            }
        }
    ]
}
Back to Top