Create a data upload cycle
If the data set is ready, you can create a data ingestion cycle for the data upload with the following HTTP request.
POST "https://<hostname>/mining/api/pub/dataIngestion/v1/dataSets/<data set>/ingestionCycles"
You must send a request body to the server in the following form (here with sample data):
{
"dataUploadTargets": [
{
"fullyQualifiedName": "default.table_a"
},
{
"fullyQualifiedName": "default.table_b"
}
]
}
The response for the call above returns the fully-formed data ingestion cycle, containing a technical key, the referenced data upload targets (tables), and some state information. It's initial state is ACCEPTING_DATA. All tables referenced by the cycle are locked for everything but the upcoming data upload.
{
"key": "data_set_1_55",
"dataUploadTargets": [...],
"dataLoadTriggered": false,
"state": {
"value": "ACCEPTING_DATA"
}
}
Note down the cycle's technical key and use it for all subsequent requests performed in the context of this cycle, for example, when committing the data upload cycle.
A request contains the technical key as follows:
/ingestionCycles/<ingestion cycle>