Create planning clusters

post

/fscmRestApi/resources/11.13.18.05/planningClustersV2

Request

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.
  • 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.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Cluster Locations
Type: array
Title: Cluster Locations
The Cluster Locations resource manages all locations within the cluster.
Show Source
Nested Schema : Cluster Members
Type: array
Title: Cluster Members
The cluster members. For example, zones, regions or locations within the cluster.
Show Source
Nested Schema : planningClustersV2-ClusterLocations-item-post-request
Type: object
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 : planningClustersV2-item-response
Type: object
Show Source
Nested Schema : Cluster Locations
Type: array
Title: Cluster Locations
The Cluster Locations resource manages all locations within the cluster.
Show Source
Nested Schema : Cluster Members
Type: array
Title: Cluster Members
The cluster members. For example, zones, regions or locations within the cluster.
Show Source
Nested Schema : planningClustersV2-ClusterLocations-item-response
Type: object
Show Source
Nested Schema : planningClustersV2-ClusterMembers-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create planning clusters.

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/planningClustersV2"

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 creates.

{
    "ClusterName": "TEST-CLUSTER",
    "Description": "Testing for Cluster REST",
    "SourceSystem": "GPR",
    "SweepLocation": "M1",
    "ExcessLeadTimeMultiplier": 1.57,
    "ShortageLeadTimeMultiplier": 1.19,
    "ReservedSafetyStockPercentage": 95,
    "LocationHierarchy": "Location"
}

Example 1 Response Body

The following example includes the contents of the response body in JSON format:

{
    "ClusterId": 300100607280107,
    "ClusterName": "TEST-CLUSTER",
    "Description": "Testing for Cluster REST",
    "SourceSystemId": 100010026240309,
    "SourceSystem": "GPR",
    "SweepLocationId": 10001,
    "SweepLocation": "M1",
    "ExcessLeadTimeMultiplier": 1.57,
    "ShortageLeadTimeMultiplier": 1.19,
    "ReservedSafetyStockPercentage": 95,
    "LocationHierarchyCode": 1,
    "LocationHierarchy": "Location",
    "OnHandLotExpirationDays": null,
    "CreatedBy": "REPL_USER",
    "CreationDate": "2024-08-01T08:29:47+00:00",
    "LastUpdatedBy": "REPL_USER",
    "LastUpdateDate": "2024-08-01T08:29:50.744+00:00",
    "LastUpdateLogin": "1D704E9A7D250A1BE0638D30060A2F4D",
    "ObjectVersionNumber": 1,
    "ClusterLocationsCount": null,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607280107",
            "name": "planningClustersV2",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607280107",
            "name": "planningClustersV2",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607280107/child/ClusterLocations",
            "name": "ClusterLocations",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607280107/child/ClusterMembers",
            "name": "ClusterMembers",
            "kind": "collection"
        }
    ]
}

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 creates.

{
   "parts": [{
   "id": "1",
   "path":"/planningClustersV2",
   "operation": "create",
   "payload": 
{
    "ClusterName": "IR_MULTI_LVL_CLUSTER1-2",
    "Description": "CLUSTER FOR AUTOMATION",
    "SweepLocation": null,
    "ExcessLeadTimeMultiplier": "1",
    "ShortageLeadTimeMultiplier": 0.5,
    "ReservedSafetyStockPercentage": 0,
    "OnHandLotExpirationDays": null,
    "LocationHierarchy": "Zone",
    "SourceSystem": "REPL1"
}},
{
         "id": "2",
         "path":"/planningClustersV2",
   "operation": "create",
   "payload": 
{
    "ClusterName": "RW_REGION_CLUSTER2",
    "SourceSystem": "GPR",
    "LocationHierarchy": "Region"
}},
{
         "id": "3",
         "path":"/planningClustersV2",
   "operation": "create",
   "payload": 
{
    "ClusterName": "RW_LOC_CLUSTER2",
    "Description": "Redwood Location Cluster",
    "SweepLocation": "RPCDC1",
    "ExcessLeadTimeMultiplier": 0.109,
    "ShortageLeadTimeMultiplier": 0.005,
    "ReservedSafetyStockPercentage": 99,
    "LocationHierarchy": "Location",
    "OnHandLotExpirationDays": 1000,
    "SourceSystem": "GPR"
}}
]
}

Example 2 Response Body

The following example includes the contents of the response body in JSON format:

{
    "parts": [
        {
            "id": "1",
            "path": "https://servername/fscmRestApi/resources/version/planningClustersV2",
            "operation": "create",
            "payload": {
                "ClusterId": 300100607459403,
                "ClusterName": "IR_MULTI_LVL_CLUSTER1-2",
                "Description": "CLUSTER FOR AUTOMATION",
                "SourceSystemId": 300100172783392,
                "SourceSystem": "REPL1",
                "SweepLocationId": null,
                "SweepLocation": null,
                "ExcessLeadTimeMultiplier": 1,
                "ShortageLeadTimeMultiplier": 0.5,
                "ReservedSafetyStockPercentage": 0,
                "LocationHierarchyCode": 3,
                "LocationHierarchy": "Zone",
                "OnHandLotExpirationDays": null,
                "CreatedBy": "REPL_USER",
                "CreationDate": "2024-08-02T05:15:48+00:00",
                "LastUpdatedBy": "REPL_USER",
                "LastUpdateDate": "2024-08-02T05:15:51.246+00:00",
                "LastUpdateLogin": "1D703AB00FAF09B4E0638D30060ADE3D",
                "ObjectVersionNumber": 1,
                "ClusterLocationsCount": null,
                "links": [
                    {
                        "rel": "self",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459403",
                        "name": "planningClustersV2",
                        "kind": "item",
                        "properties": {
                            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                        }
                    },
                    {
                        "rel": "canonical",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459403",
                        "name": "planningClustersV2",
                        "kind": "item"
                    },
                    {
                        "rel": "child",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459403/child/ClusterLocations",
                        "name": "ClusterLocations",
                        "kind": "collection"
                    },
                    {
                        "rel": "child",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459403/child/ClusterMembers",
                        "name": "ClusterMembers",
                        "kind": "collection"
                    }
                ]
            }
        },
        {
            "id": "2",
            "path": "https://servername/fscmRestApi/resources/version/planningClustersV2",
            "operation": "create",
            "payload": {
                "ClusterId": 300100607459404,
                "ClusterName": "RW_REGION_CLUSTER2",
                "Description": null,
                "SourceSystemId": 100010026240309,
                "SourceSystem": "GPR",
                "SweepLocationId": null,
                "SweepLocation": null,
                "ExcessLeadTimeMultiplier": 1,
                "ShortageLeadTimeMultiplier": 1,
                "ReservedSafetyStockPercentage": 0,
                "LocationHierarchyCode": 2,
                "LocationHierarchy": "Region",
                "OnHandLotExpirationDays": null,
                "CreatedBy": "REPL_USER",
                "CreationDate": "2024-08-02T05:15:48.176+00:00",
                "LastUpdatedBy": "REPL_USER",
                "LastUpdateDate": "2024-08-02T05:15:51.263+00:00",
                "LastUpdateLogin": "1D703AB00FAF09B4E0638D30060ADE3D",
                "ObjectVersionNumber": 1,
                "ClusterLocationsCount": null,
                "links": [
                    {
                        "rel": "self",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459404",
                        "name": "planningClustersV2",
                        "kind": "item",
                        "properties": {
                            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                        }
                    },
                    {
                        "rel": "canonical",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459404",
                        "name": "planningClustersV2",
                        "kind": "item"
                    },
                    {
                        "rel": "child",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459404/child/ClusterLocations",
                        "name": "ClusterLocations",
                        "kind": "collection"
                    },
                    {
                        "rel": "child",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459404/child/ClusterMembers",
                        "name": "ClusterMembers",
                        "kind": "collection"
                    }
                ]
            }
        },
        {
            "id": "3",
            "path": "https://servername/fscmRestApi/resources/version/planningClustersV2",
            "operation": "create",
            "payload": {
                "ClusterId": 300100607459405,
                "ClusterName": "RW_LOC_CLUSTER2",
                "Description": "Redwood Location Cluster",
                "SourceSystemId": 100010026240309,
                "SourceSystem": "GPR",
                "SweepLocationId": 31634,
                "SweepLocation": "RPCDC1",
                "ExcessLeadTimeMultiplier": 0.11,
                "ShortageLeadTimeMultiplier": 0.01,
                "ReservedSafetyStockPercentage": 99,
                "LocationHierarchyCode": 1,
                "LocationHierarchy": "Location",
                "OnHandLotExpirationDays": 1000,
                "CreatedBy": "REPL_USER",
                "CreationDate": "2024-08-02T05:15:48.190+00:00",
                "LastUpdatedBy": "REPL_USER",
                "LastUpdateDate": "2024-08-02T05:15:51.270+00:00",
                "LastUpdateLogin": "1D703AB00FAF09B4E0638D30060ADE3D",
                "ObjectVersionNumber": 1,
                "ClusterLocationsCount": null,
                "links": [
                    {
                        "rel": "self",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459405",
                        "name": "planningClustersV2",
                        "kind": "item",
                        "properties": {
                            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                        }
                    },
                    {
                        "rel": "canonical",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459405",
                        "name": "planningClustersV2",
                        "kind": "item"
                    },
                    {
                        "rel": "child",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459405/child/ClusterLocations",
                        "name": "ClusterLocations",
                        "kind": "collection"
                    },
                    {
                        "rel": "child",
                        "href": "https://servername/fscmRestApi/resources/version/planningClustersV2/300100607459405/child/ClusterMembers",
                        "name": "ClusterMembers",
                        "kind": "collection"
                    }
                ]
            }
        }
    ]
}
Back to Top