Create New Datasource
Endpoint Name: insertdatasource
Request type : POST
Authorization: Bearer token as header
Endpoint Details: The insertdatasource
endpoint will be used to create new datasource.
Method
URL
POST
URL/access/klearstack/insertdatasource
Request Body
Params
Values
Description
datasource_name
string
Name of the datasource
company_name
string
Name of the company for which the user is logging in
data
string(JSON)
A valid JSON string containing info about Datasource to be created. It contains info about which columns to create and datatype of those columns
Example:
{
"DataSourceName": "test ",
"DataSourceType": "excel_or_csv",
"DataSourceStatus": true,
"fields": [{
"name": "USER_FIRST_NAME",
"datatype": "string"
}, {
"name": "email",
"datatype": "string"
}]
}
dataset
Binary
Excel or CSV file containing data for datasource.
API Response
Status code
Example Response
200
{
"success": true,
“release_version”:”7.8.9”
}
400
{
"error": "Datasource Name already exists"
}
Last updated