# AbacusApi.DatasetApi

All URIs are relative to *https://localhost/AizenGlobal/Abacus/1.1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**datasetsDelete**](DatasetApi.md#datasetsDelete) | **DELETE** /datasets/ | Delete selected datasets
[**datasetsGet**](DatasetApi.md#datasetsGet) | **GET** /datasets/ | Get list of datasets
[**datasetsIdDelete**](DatasetApi.md#datasetsIdDelete) | **DELETE** /datasets/{id}/ | Delete dataset
[**datasetsIdGet**](DatasetApi.md#datasetsIdGet) | **GET** /datasets/{id}/ | Get Dataset info
[**datasetsIdPatch**](DatasetApi.md#datasetsIdPatch) | **PATCH** /datasets/{id}/ | Update dataset info
[**datasetsIdPost**](DatasetApi.md#datasetsIdPost) | **POST** /datasets/{id}/ | Copy the dataset and Update dataset info
[**datasetsIdPreprocessPost**](DatasetApi.md#datasetsIdPreprocessPost) | **POST** /datasets/{id}/preprocess/ | Start preprocessing of dataset
[**datasetsPost**](DatasetApi.md#datasetsPost) | **POST** /datasets/ | Create a new dataset


<a name="datasetsDelete"></a>
# **datasetsDelete**
> datasetsDelete(opts)

Delete selected datasets

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.DatasetApi();

var opts = { 
  'body': new AbacusApi.Body1() // Body1 | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.datasetsDelete(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Body1**](Body1.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="datasetsGet"></a>
# **datasetsGet**
> InlineResponse200 datasetsGet(opts)

Get list of datasets

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.DatasetApi();

var opts = { 
  'status': "status_example", // String | If you want to get all datasets, do not use this query string.  (something like dataset list page)  Values -  uploaded, inspected, preprocessed If you want to browse datasets in the model page you have to load ONLY preprocessed datasets  Example - GET /datasets/?status=preprocessed 
  'modelId': 56 // Number | If you want to browse datasets in the prediction page you have to put the selected model_id in the parameter.  Example - GET /datasets/?model_id=1 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.datasetsGet(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **status** | **String**| If you want to get all datasets, do not use this query string.  (something like dataset list page)  Values -  uploaded, inspected, preprocessed If you want to browse datasets in the model page you have to load ONLY preprocessed datasets  Example - GET /datasets/?status&#x3D;preprocessed  | [optional] 
 **modelId** | **Number**| If you want to browse datasets in the prediction page you have to put the selected model_id in the parameter.  Example - GET /datasets/?model_id&#x3D;1  | [optional] 

### Return type

[**InlineResponse200**](InlineResponse200.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="datasetsIdDelete"></a>
# **datasetsIdDelete**
> datasetsIdDelete(id)

Delete dataset

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.DatasetApi();

var id = 56; // Number | ID of dataset to delete


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.datasetsIdDelete(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of dataset to delete | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="datasetsIdGet"></a>
# **datasetsIdGet**
> InlineResponse2002 datasetsIdGet(id, opts)

Get Dataset info

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.DatasetApi();

var id = 56; // Number | 

var opts = { 
  'column': "column_example", // String | 
  'target': "target_example" // String | When select the target and the field, you need to set parameters (column & target) to receive data to view field details.  For Example) ?column=Age&target=Dep \\ {   \"name\": \"string\",   \"visual\": {     \"log\": [       0     ],     \"linear\": [       0     ],     \"category_bar\": [       \"string\"     ],     \"analysis\": [       0     ]   },   \"statistics\": {     \"unique_value\": 0,     \"missing_value\": 0,     \"max\": 0,     \"min\": 0,     \"mean\": 0,     \"median\": 0,     \"deviation\": 0   } } 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.datasetsIdGet(id, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**|  | 
 **column** | **String**|  | [optional] 
 **target** | **String**| When select the target and the field, you need to set parameters (column &amp; target) to receive data to view field details.  For Example) ?column&#x3D;Age&amp;target&#x3D;Dep \\ {   \&quot;name\&quot;: \&quot;string\&quot;,   \&quot;visual\&quot;: {     \&quot;log\&quot;: [       0     ],     \&quot;linear\&quot;: [       0     ],     \&quot;category_bar\&quot;: [       \&quot;string\&quot;     ],     \&quot;analysis\&quot;: [       0     ]   },   \&quot;statistics\&quot;: {     \&quot;unique_value\&quot;: 0,     \&quot;missing_value\&quot;: 0,     \&quot;max\&quot;: 0,     \&quot;min\&quot;: 0,     \&quot;mean\&quot;: 0,     \&quot;median\&quot;: 0,     \&quot;deviation\&quot;: 0   } }  | [optional] 

### Return type

[**InlineResponse2002**](InlineResponse2002.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="datasetsIdPatch"></a>
# **datasetsIdPatch**
> datasetsIdPatch(id, opts)

Update dataset info

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.DatasetApi();

var id = 56; // Number | ID of dataset

var opts = { 
  'body': new AbacusApi.Body3() // Body3 | index is the name of the column to use as the row identifier. It must be a column where all values are unique. The possible options for the index column are defined in schema['options']['index'].  target is the name of the column to use as the target. It must be a column selected as a binary column.   types is an object containing all columns that the user wishes to change the data type of. 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.datasetsIdPatch(id, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of dataset | 
 **body** | [**Body3**](Body3.md)| index is the name of the column to use as the row identifier. It must be a column where all values are unique. The possible options for the index column are defined in schema[&#39;options&#39;][&#39;index&#39;].  target is the name of the column to use as the target. It must be a column selected as a binary column.   types is an object containing all columns that the user wishes to change the data type of.  | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="datasetsIdPost"></a>
# **datasetsIdPost**
> datasetsIdPost(id, opts)

Copy the dataset and Update dataset info

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.DatasetApi();

var id = 56; // Number | ID of dataset

var opts = { 
  'body': new AbacusApi.Body2() // Body2 | index is the name of the column to use as the row identifier. It must be a column where all values are unique. The possible options for the index column are defined in schema['options']['index'].  target is the name of the column to use as the target. It must be a column selected as a binary column.   types is an object containing all columns that the user wishes to change the data type of. 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.datasetsIdPost(id, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of dataset | 
 **body** | [**Body2**](Body2.md)| index is the name of the column to use as the row identifier. It must be a column where all values are unique. The possible options for the index column are defined in schema[&#39;options&#39;][&#39;index&#39;].  target is the name of the column to use as the target. It must be a column selected as a binary column.   types is an object containing all columns that the user wishes to change the data type of.  | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="datasetsIdPreprocessPost"></a>
# **datasetsIdPreprocessPost**
> InlineResponse2003 datasetsIdPreprocessPost(id)

Start preprocessing of dataset

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.DatasetApi();

var id = 56; // Number | ID of dataset to preprocess


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.datasetsIdPreprocessPost(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of dataset to preprocess | 

### Return type

[**InlineResponse2003**](InlineResponse2003.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="datasetsPost"></a>
# **datasetsPost**
> InlineResponse2001 datasetsPost(opts)

Create a new dataset

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.DatasetApi();

var opts = { 
  'body': new AbacusApi.Body() // Body | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.datasetsPost(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Body**](Body.md)|  | [optional] 

### Return type

[**InlineResponse2001**](InlineResponse2001.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

