Data Import API Changelog

Find out what's new in the Data Import Service API.

Version 1.2.0

A new Unit Conversion service for Data Import Service now allows you to create and run import jobs to the standard unit conversion tables. This will allow you to inserrt, update, and delete custom units and unit descriptions in those tables.

You can see the new unit conversion tables which are exposed for import using the /unitConversions endpoint:
{
    "unitConversions": [
        {
            "unitConversionID": "T006",
            "unitConversionName": "Conversion Rates",
            "unitConversionDescription": "Conversion Rates - Conversion Rates",
            "unitConversionURL": "{BaseURL}/unitConversions/T006"
        },
        {
            "unitConversionID": "T006A",
            "unitConversionName": "Unit Descriptions",
            "unitConversionDescription": "Unit Descriptions - Unit Descriptions",
            "unitConversionURL": "{BaseURL}/unitConversions/T006A"
        }
    ]
}
For each table, you can find the required importType, metadataURL, and available job settings by using the /unitConversions/{unitConversionID} (GET) endpoint:
{
    "importTypeUrls": {
        "conversionRates": "{BaseURL}/unitConversions/T006/conversionRates"
    },
    "metadataUrl": "{BaseURL}/unitConversions/T006/metadata",
    "importTypes": [
        {
            "importType": "conversionRates",
            "availableJobSettings": {
               …
            }
        }
    ]
}
You can view the metadata for a particular unit conversion table, which tells you what the structure of the data should be when importing, using the /unitConversions/{unitConversionID}/metadata endpoint:
{
    "unitDescriptions": {
        "keys": [
            "SPRAS",
            "MSEHI"
        ],
        "columns": [
            {
                "columnName": "SPRAS",
                "columnDataType": "string",
                "maxLength": 2,
                "isKey": true,
                "propertyType": "PROPERTY",
                "descriptionName": "SPRAS"
            },
            …
        ]
    }
}
To import to any of the available unit tables, start by creating an import job for that table by sending a POST request to the /unitConversions/{unitConversionID}/{importType} endpoint, created using the table name and import type (retrieved from the response above):
{
    "jobID": "{jobid}",
    "importType": "conversionRates",
    "jobURL": "https://fpa139-01.orcastarkiller.canary.eu10.projectorca.cloud/api/v1/dataimport/jobs/{jobid}"
}
Using the JobID, you can send a POST request to the /jobs/{jobID} (POST) to post data to the job, for both upserts (Data) and deletes (DeletedData).
{
    "Data": [
        {
            "MSEHI": "PLT",
            "KZEX3": "X",
            "KZEX6": "Y",
            "ANDEC": 5,
            "KZKEH": "Z",
            "KZWOB": "W",
            "KZ1EH": "1",
            "KZ2EH": "2",
            "DIMID": "CUSTOM",
            "ZAEHL": 1,
            "NENNR": 1,
            "EXP10": 3,
            "ADDKO": 12345.6789,
            "EXPON": 2,
            "DECAN": 8,
            "ISOCODE": "ISO",
            "PRIMARY": "X",
            "TEMP_VALUE": 9876.54321,
            "TEMP_UNIT": "C",
            "FAMUNIT": "F",
            "PRESS_VAL": 2112.34567,
            "PRESS_UNIT": "BAR"
        }
    ],
    "DeletedData": [
        {
            "MSEHI": "BOX"
        }
    ]
}

Version 1.1.2

Adjusted description for POST endpoint in Data Import Service and introduced new parameter in JSON response.
The response for the endpoint /jobs/{jobID}/status now includes the importType and jobPropertiesURL, as shown below:
{
    "jobStatus": "READY_FOR_DATA",
    "jobStatusDescription": "Job {JobID} for modelID {ModelID} has been created successfully and is waiting for data",
    "importType": "publicDimensionData",
    "jobPropertiesURL": "{BaseURL}/jobs/{JobID}",
    "additionalInformation": {}
}

Version 1.1.1

Introduced new domain for CN40 data center for Data Import API.

Version 1.1.0

A new Public Dimension service for Data Import Service now allows you to run an import jobs for public dimensions.
The full list of public dimensions can be accessed with the endpoint /publicDimensions.
{
    "publicDimensions": [
        {
            "publicDimensionID": "T_C:GLaccount",
            "publicDimensionName": "GLaccount",
            "publicDimensionDescription": "GLaccount - GLaccount",
            "publicDimensionURL": "{BaseURL}/publicDimensions/T_C:GLaccount"
        },
       {
            "publicDimensionID": "t.TEST:Dimension_public",
            "publicDimensionName": "Dimension_public",
            "publicDimensionDescription": "Dimension_public - Public Dimension",
            "publicDimensionURL": "{BaseURL}/publicDimensions/t.TEST:Dimension_public"
        }
    ]
}
To get information about a particular public dimension such as the supported importTypes, urls, and available Job Settings, you can query /publicDimensions/{PublicDimensionID}.
{
    "importTypeUrls": {
        "publicDimensionData": "{BaseURL}/publicDimensions/t.TEST:Dimension_public/publicDimensionData"
    },
    "metadataUrl": "{BaseURL}/publicDimensions/t.TEST:Dimension_public/metadata",
    "importTypes": [
        {
            "importType": "publicDimensionData",
            "availableJobSettings": {
                "importMethod": [
                    "Update"
                ],
                "pivotOptions": {
                    "pivotColumnStart": 0,
                    "pivotKeyName": "",
                    "pivotValueName": ""
                },
                "executeWithFailedRows": [
                    true,
                    false
                ],
                "ignoreAdditionalColumns": [
                    true,
                    false
                ]
            }
        }
    ]
}
To get the metadata for a particular Public Dimension, such as the column names and key columns, you can query /publicDimensions/{PublicDimensionID}/metadata.
{
    "publicDimensionData": {
        "keys": [
            "ID"
        ],
        "columns": [
            {
                "columnName": "ID",
                "columnDataType": "string",
                "maxLength": 256,
                "isKey": true,
                "propertyType": "ID",
                "descriptionName": "Member ID"
            },
            {
                "columnName": "Property_1",
                "columnDataType": "string",
                "maxLength": 127,
                "isKey": false,
                "propertyType": "PROPERTY",
                "descriptionName": "Property 1"
            },
            {
                "columnName": "Property_2",
                "columnDataType": "string",
                "maxLength": 127,
                "isKey": false,
                "propertyType": "PROPERTY",
                "descriptionName": "Property 2"
            },
            {
                "columnName": "Property_3",
                "columnDataType": "string",
                "maxLength": 127,
                "isKey": false,
                "propertyType": "PROPERTY",
                "descriptionName": "Property 3"
            },
            {
                "columnName": "Description",
                "columnDataType": "string",
                "maxLength": 256,
                "isKey": false,
                "propertyType": "DESCRIPTION",
                "descriptionName": "Description"
            }
        ]
    }
}
To create an import job for public dimensions, you can send a post request to /publicDimensions/{PublicDimensionID}, which will return a JobID.
{
    "jobID": "{JobID}",
    "importType": "publicDimensionData",
    "jobURL": "{BaseURL}/jobs/{JobID}
}
Using the JobID, you can send a post request to the endpoint /jobs/{JobID} to post data to the job.
{
    "Data": [
        {
            "ID": "Member A",
            "Property_1": "Value1",
            "Property_2": "Value2",
            "Property_3": "Value3",
            "Description": "Sample Description",
        },
        {
            "ID": "Member B",
            "Property_1": "Value4",
            "Property_2": "Value5",
            "Property_3": "Value6",
            "Description": "Sample Description",
        }
    ]
}
The typical Data Import Job endpoints can then be used to validate, run, check the status of, and delete the job.

Version 1.0.0

Initial Release.