Data Input (DP_1)

Specify the data sources, this functionality can take database connection, CSV, JSON or ZIP files

NOTE: If you're using a database connection, create a separate user with appropriate permissions, before uploading data from a database.

Sample Request

{
    "project_id": 1,
    "parent_id": 0,
    "block_id": 1,
    "function_code": "DP_1",
    "args": {
        "dburl": "https://raw.githubusercontent.com/autogonai/autogon-public-datasets/main/mobile_price_prediction.csv",
        "dbservertype": "",
        "file_type": "csv",
        "database_name": "",
        "dbuser": "",
        "dbpassword": "",
        "query": "",
    }
}

Data input

POST https://api.autogon.ai/api/v1/engine/start

Loads data into a project.

Request Body

{
    "status": "true",
    "message": {
        "id": 1,
        "project": 2,
        "block_id": 1,
        "parent_id": 0,
        "dataset_url": "",
        "x_value_url": "",
        "y_value_url": ""
    }
}
// Some code

Good to know: Unlike other block requests, the Data Input block isn't permitted to have parent blocks, hence its null value.

Last updated