Create collections

post

/fscmRestApi/resources/11.13.18.05/dataCollections

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.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Maximum Length: 1000
    List of catalogs in Oracle Product Hub Cloud that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Type of data collection. Includes one of the following values. 1: targeted, 2: net change, or 3: automatic selection. You can use lookup MSC_DATA_COLLECTION_MODE to determine the values that this attribute uses.
  • Maximum Length: 1000
    List of currency conversion types that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 1000
    List of country codes that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 64
    User who started the data collection process.
  • Date when the user started the data collection process.
  • Maximum Length: 1000
    List of customer class codes that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Time when the data collection process ended.
  • Total count of entities that the collection process expects to process.
  • Count of entities that the collection process successfully processed.
  • Maximum Length: 4000
    List of codes for each entity that the user selected in the template for data collection. A comma ( , ) separates each value.
  • Value that uniquely identifies the parent scheduled process for data collection.
  • Value that uniquely identifies the system where the collection process collected entities.
  • Date when the user most recently updated the collection process.
  • Maximum Length: 64
    User who most recently updated the collection process.
  • Text of the error message that occurred during data collection.
  • Maximum Length: 1000
    List of sales order types that the collection process uses when collecting demand history. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 4000
    List of organizations that the user selected in the template or enabled for the source system. A comma ( , ) separates each value.
  • Maximum Length: 4000
    List of organizations in Oracle Product Hub Cloud that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 1000
    List of price lists that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 32
    Status of the data collection process. Includes one of the following values: CycleProcessingStart, Pull_Processing, Pull_Done, Load_Processing, Load_Done, Completed, or Purge_Processing.
  • Number that uniquely identifies the time that the collection process most recently collected data.
  • Maximum Length: 1000
    Name of the sales organization hierarchy that the collection process collects.
  • Name of the source system where the collection process collected entities.
  • Time when the data collection process started.
  • Maximum Length: 32
    Completion status of the collections process. Includes one of the following values: NORMAL, FAILED, or WARNING.
  • Template that contains the entities and filters that the user selected for data collection.
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 : dataCollections-item-response
Type: object
Show Source
  • Maximum Length: 1000
    List of catalogs in Oracle Product Hub Cloud that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Type of data collection. Includes one of the following values. 1: targeted, 2: net change, or 3: automatic selection. You can use lookup MSC_DATA_COLLECTION_MODE to determine the values that this attribute uses.
  • Maximum Length: 1000
    List of currency conversion types that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 1000
    List of country codes that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 64
    User who started the data collection process.
  • Date when the user started the data collection process.
  • Maximum Length: 1000
    List of customer class codes that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Time when the data collection process ended.
  • Total count of entities that the collection process expects to process.
  • Count of entities that the collection process successfully processed.
  • Maximum Length: 4000
    List of codes for each entity that the user selected in the template for data collection. A comma ( , ) separates each value.
  • Value that uniquely identifies the parent scheduled process for data collection.
  • Read Only: true
    Value that uniquely identifies the parent scheduled process for data collection.
  • Read Only: true
    Value that uniquely identifies the parent flat file load process.
  • Value that uniquely identifies the system where the collection process collected entities.
  • Date when the user most recently updated the collection process.
  • Maximum Length: 64
    User who most recently updated the collection process.
  • Links
  • Text of the error message that occurred during data collection.
  • Maximum Length: 1000
    List of sales order types that the collection process uses when collecting demand history. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 4000
    List of organizations that the user selected in the template or enabled for the source system. A comma ( , ) separates each value.
  • Maximum Length: 4000
    List of organizations in Oracle Product Hub Cloud that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 1000
    List of price lists that the collection process uses in the template. A comma ( , ) separates each value. If the list is empty, then the collection process collects all values.
  • Maximum Length: 32
    Status of the data collection process. Includes one of the following values: CycleProcessingStart, Pull_Processing, Pull_Done, Load_Processing, Load_Done, Completed, or Purge_Processing.
  • Number that uniquely identifies the time that the collection process most recently collected data.
  • Maximum Length: 1000
    Name of the sales organization hierarchy that the collection process collects.
  • Name of the source system where the collection process collected entities.
  • Time when the data collection process started.
  • Maximum Length: 32
    Completion status of the collections process. Includes one of the following values: NORMAL, FAILED, or WARNING.
  • Template that contains the entities and filters that the user selected for data collection.
Back to Top

Examples

This example describes how to launch data collections process.

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' 
servername/fscmRestApi/resources/version/dataCollections"

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.

{
            "TemplateName": "Static Data for Supply Planning",
            "SourceSystem": "GPR",
            "CollectionType": "1"
}

Example Response Body

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

{
    "InstanceId": null,
    "RefreshNumber": 0,
    "ProcPhase": null,
    "Status": null,
    "StartTime": null,
    "EndTime": null,
    "EntitiesExpected": null,
    "EntitiesProcessed": null,
    "CreatedBy": null,
    "CreationDate": null,
    "LastUpdatedBy": null,
    "LastUpdateDate": null,
    "OrgIdList": null,
    "EntityList": null,
    "ESSCollectionJobId": 120573,
    "PimOrgIdList": null,
    "CatalogNameList": null,
    "ConversionRateTypeList": null,
    "PriceList": null,
    "OrderTypeList": null,
    "CustomerClassCodeList": null,
    "CountryCodeList": null,
    "SalesOrgHierarchy": null,
    "TemplateName": "Static Data for Supply Planning",
    "Message": null,
    "SourceSystem": "GPR",
    "CollectionType": 2,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/dataCollections/0",
            "name": "dataCollections",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/dataCollections/0",
            "name": "dataCollections",
            "kind": "item"
        }
    ]
}
Back to Top