Schedule Cloud Upload
APIs to scheduled data uploads
Before executing APIs to schedule uploads, grant read access to the Google Cloud Storage bucket or Google BigQuery table (if using either).
Tenant Id can be retrieved from the UI as listed here
Source Id can be retrieved from the UI or using the APIs
Get all scheduled uploads for this tenant and source
GET
https://demo.api.telm.ai/{tenant}/configuration/sources/{source}/scheduled_uploads
Path Parameters
{
"delta_only": true,
"enabled": true,
"sample_fraction": 0,
"schedule": "string",
"skip_investigator": true,
"source": "string",
"timestamp_attribute": "string",
"upload": {
"azureLocation": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
},
"security": {
"sas_key": "string",
"storage_account": "string"
}
},
"bigQueryLocation": {
"dataset": "string",
"method": "EXPORT",
"project": "string",
"table": "string"
},
"databaseTableLocation": {
"table": "string"
},
"fileStorageLocation": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
}
},
"gcsLocation": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
}
},
"idAttribute": "string",
"s3Location": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
},
"security": {
"aws_key": "string",
"aws_secret": "string",
"region": "string"
}
},
"snowflakeLocation": {
"account": "string",
"database": "string",
"schema": "string",
"security": {
"private_key": "string",
"role": "string",
"user": "string"
},
"table": "string",
"warehouse": "string"
},
"type": "AZURE"
}
}
Schedule an upload
POST
https://demo.api.telm.ai/{tenant}/configuration/sources/{source}/scheduled_uploads
Examples of request body are listed below
Path Parameters
Request Body
{
"delta_only": true,
"enabled": true,
"sample_fraction": 0,
"schedule": "string",
"skip_investigator": true,
"source": "string",
"timestamp_attribute": "string",
"upload": {
"azureLocation": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
},
"security": {
"sas_key": "string",
"storage_account": "string"
}
},
"bigQueryLocation": {
"dataset": "string",
"method": "EXPORT",
"project": "string",
"table": "string"
},
"databaseTableLocation": {
"table": "string"
},
"fileStorageLocation": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
}
},
"gcsLocation": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
}
},
"idAttribute": "string",
"s3Location": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
},
"security": {
"aws_key": "string",
"aws_secret": "string",
"region": "string"
}
},
"snowflakeLocation": {
"account": "string",
"database": "string",
"schema": "string",
"security": {
"private_key": "string",
"role": "string",
"user": "string"
},
"table": "string",
"warehouse": "string"
},
"type": "AZURE"
}
}
Update a scheduled upload
PUT
https://demo.api.telm.ai/{tenant}/configuration/sources/{source}/scheduled_uploads
Examples of request body are listed below
Path Parameters
Request Body
{
"delta_only": true,
"enabled": true,
"sample_fraction": 0,
"schedule": "string",
"skip_investigator": true,
"source": "string",
"timestamp_attribute": "string",
"upload": {
"azureLocation": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
},
"security": {
"sas_key": "string",
"storage_account": "string"
}
},
"bigQueryLocation": {
"dataset": "string",
"method": "EXPORT",
"project": "string",
"table": "string"
},
"databaseTableLocation": {
"table": "string"
},
"fileStorageLocation": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
}
},
"gcsLocation": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
}
},
"idAttribute": "string",
"s3Location": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
},
"security": {
"aws_key": "string",
"aws_secret": "string",
"region": "string"
}
},
"snowflakeLocation": {
"account": "string",
"database": "string",
"schema": "string",
"security": {
"private_key": "string",
"role": "string",
"user": "string"
},
"table": "string",
"warehouse": "string"
},
"type": "AZURE"
}}
Delete a scheduled upload
DELETE
https://demo.api.telm.ai/{tenant}/configuration/sources/{source}/scheduled_uploads
Path Parameters
{
"message": "string"
}
Request Body for POST and PUT
Some examples of the request body parameters are described below
Depending on the type of input source, the "upload" section will be any one of the request body described in Upload Data Apis section.
Example 1: If input file is located in Azure
{
"delta_only": true,
"enabled": true,
"sample_fraction": 0,
"schedule": "string",
"skip_investigator": true,
"source": "string",
"timestamp_attribute": "string",
"idAttribute": "string",
"upload": {
"type": "AZURE"
"payload": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
},
"security": {
"sas_key": "string",
"storage_account": "string"
}
}
}
}
Example 2: If input file is located in BIGQUERY:
{
"delta_only": true,
"enabled": true,
"sample_fraction": 0,
"schedule": "string",
"skip_investigator": true,
"source": "string",
"timestamp_attribute": "string",
"idAttribute": "string",
"upload": {
"type": "BIGQUERY"
"payload": {
"dataset": "string",
"method": "EXPORT",
"project": "string",
"table": "string"
}
}
}
Example 3: If input file is located in S3:
{
"delta_only": true,
"enabled": true,
"sample_fraction": 0,
"schedule": "string",
"skip_investigator": true,
"source": "string",
"timestamp_attribute": "string",
"idAttribute": "string",
"upload": {
"type": "S3"
"payload": {
"bucket": "string",
"path": "string",
"read_options": {
"separator": "string"
},
"security": {
"aws_key": "string",
"aws_secret": "string",
"region": "string"
}
}
}
}