Create data

post

/fscmRestApi/resources/11.13.18.05/supplyChainPlans/{PlanId}/child/PlanningTables/{TableId}/child/Data

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
  • Value that uniquely identifies the scheduled process for update. This attribute is used only for the POST operation and only when the UpdateMode is Batch.
  • Value that uniquely identifies a set of filter criteria. The filter criteria is used for both query and update of pivot table data. The filter criteria is expressed as a base-64 encoded string of filter conditions using any level members of the pivot table.
  • Text of the error message from the table query.
  • Status of the POST Data API query. Contains one of the following values. 0: success, 1: warning, or 2: error.
  • Hierarchy members and measure values that the pivot table contains. The text separates each unique combination of hierarchy member and measure values, and a comma separates each measure value.
  • List of hierarchy level names and the list of measure names that the pivot table contains. A comma separates each value.
  • Names of the hierarchies that the pivot table contains. A comma separates each value.
  • Method used to update the data. Valid values are Interactive and Batch. The default value is Interactive. In the interactive mode, the POST operation is performed synchronously and in batch mode, it's performed asynchronously using a scheduled process. The scheduled process job identifier is returned in the response message. This attribute isn't used in the GET operation.
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 : supplyChainPlans-PlanningTables-Data-item-response
Type: object
Show Source
  • Value that uniquely identifies the scheduled process for update. This attribute is used only for the POST operation and only when the UpdateMode is Batch.
  • Value that uniquely identifies a set of filter criteria. The filter criteria is used for both query and update of pivot table data. The filter criteria is expressed as a base-64 encoded string of filter conditions using any level members of the pivot table.
  • Links
  • Text of the error message from the table query.
  • Status of the POST Data API query. Contains one of the following values. 0: success, 1: warning, or 2: error.
  • Hierarchy members and measure values that the pivot table contains. The text separates each unique combination of hierarchy member and measure values, and a comma separates each measure value.
  • List of hierarchy level names and the list of measure names that the pivot table contains. A comma separates each value.
  • Names of the hierarchies that the pivot table contains. A comma separates each value.
  • Read Only: true
    Value that uniquely identifies the pivot table.
  • Method used to update the data. Valid values are Interactive and Batch. The default value is Interactive. In the interactive mode, the POST operation is performed synchronously and in batch mode, it's performed asynchronously using a scheduled process. The scheduled process job identifier is returned in the response message. This attribute isn't used in the GET operation.
Back to Top

Examples

This example describes how to update data on a pivot table of a plan.

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/supplyChainPlans/PlanId/child/PlanningTables/TableId/child/Data"

For example:

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/supplyChainPlans/300100560600460/child/PlanningTables/9002/child/Data"

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

{ 
"TableHierarchies": "Product,Enterprise,Gregorian Calendar",
"TableDataHeader": "Item,Organization,Month,Shipments History 1 Year Ago,Shipments History,Adjusted Shipments History,Final Shipments History,Sales Orders,Shipments Forecast,Adjusted Shipments Forecast,Final Shipments Forecast,Shipments Forecast MAPE,Shipments Forecast Bias,Shipments Forecast MAD",
"TableData": "HL-DISPLAY,M1,07/01/29,,,55,20,,,,,2.246,-2.246,37.429\r\nHL-DISPLAY,M1,08/01/29,,,55,100,,,,,2.246,-2.246,37.429"
}

Example Response Body

The following example includes the contents of the response body in JSON format:
{
    "TableId": 9002, 
       "TableHierarchies": "Product,Enterprise,Gregorian Calendar",
       "TableDataHeader": "Item,Organization,Month,Shipments History 1 Year Ago,Shipments History,Adjusted Shipments History,Final Shipments History,Sales Orders,Shipments Forecast,Adjusted Shipments Forecast,Final Shipments Forecast,Shipments Forecast MAPE,Shipments Forecast Bias,Shipments Forecast MAD",
       "TableData": "HL-DISPLAY,M1,07/01/29,,,55,20,,,,,2.246,-2.246,37.429\r\nHL-DISPLAY,M1,08/01/29,,,55,100,,,,,2.246,-2.246,37.429\n\r",
       "UpdateMode": null,
       "Message": "The service was completed. Please refer to message details for diagnostic information.Payload combination points=2, Parsed combination points=2, No value points =2, Same value points=0, Found points=2. For more details check application log at the  ServiceServer_1 service server
       "Status":0
       "ESSJobId": null,
       "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/supplyChainPlans/300100560600460/child/PlanningTables/9002/child/Data/",
            "name": "Data",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/supplyChainPlans/300100560600460/child/PlanningTables/9002/child/Data/",
            "name": "Data",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://servername/fscmRestApi/resources/version/supplyChainPlans/300100560600460/child/PlanningTables/9002",
            "name": "PlanningTables",
            "kind": "item"
        },
        {
            "rel": "enclosure",
            "href": "https://servername/fscmRestApi/resources/version/supplyChainPlans/300100560600460/child/PlanningTables/9002/child/Data//enclosure/Filter",
            "name": "Filter",
            "kind": "other"
        }
    ]
}
Back to Top