# AbacusApi.ModelApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**modelsDelete**](ModelApi.md#modelsDelete) | **DELETE** /models/ | Delete selected models
[**modelsGet**](ModelApi.md#modelsGet) | **GET** /models/ | Get list of models
[**modelsIdDelete**](ModelApi.md#modelsIdDelete) | **DELETE** /models/{id}/ | Delete model
[**modelsIdGet**](ModelApi.md#modelsIdGet) | **GET** /models/{id}/ | Get model info
[**modelsIdPatch**](ModelApi.md#modelsIdPatch) | **PATCH** /models/{id}/ | Update model info
[**modelsIdTrainPost**](ModelApi.md#modelsIdTrainPost) | **POST** /models/{id}/train/ | Start training of model
[**modelsPost**](ModelApi.md#modelsPost) | **POST** /models/ | Create a new model


<a name="modelsDelete"></a>
# **modelsDelete**
> modelsDelete(body)

Delete selected models

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

var apiInstance = new AbacusApi.ModelApi();

var body = new AbacusApi.Body5(); // Body5 | model ids to delete


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Body5**](Body5.md)| model ids to delete | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="modelsGet"></a>
# **modelsGet**
> InlineResponse2004 modelsGet()

Get list of models

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

var apiInstance = new AbacusApi.ModelApi();

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

### Parameters
This endpoint does not need any parameter.

### Return type

[**InlineResponse2004**](InlineResponse2004.md)

### Authorization

No authorization required

### HTTP request headers

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

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

Delete model

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

var apiInstance = new AbacusApi.ModelApi();

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


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

### Parameters

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

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

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

Get model info

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

var apiInstance = new AbacusApi.ModelApi();

var id = 56; // Number | ID of model to get info of


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of model to get info of | 

### Return type

[**InlineResponse2006**](InlineResponse2006.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="modelsIdPatch"></a>
# **modelsIdPatch**
> modelsIdPatch(id, body)

Update model info

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

var apiInstance = new AbacusApi.ModelApi();

var id = 56; // Number | ID of model to update

var body = new AbacusApi.Body6(); // Body6 | Attributes to update


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of model to update | 
 **body** | [**Body6**](Body6.md)| Attributes to update | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

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

Start training of model

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

var apiInstance = new AbacusApi.ModelApi();

var id = 56; // Number | ID of model to train


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of model to train | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="modelsPost"></a>
# **modelsPost**
> InlineResponse2005 modelsPost(body)

Create a new model

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

var apiInstance = new AbacusApi.ModelApi();

var body = new AbacusApi.Body4(); // Body4 | Model recipe


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Body4**](Body4.md)| Model recipe | 

### Return type

[**InlineResponse2005**](InlineResponse2005.md)

### Authorization

No authorization required

### HTTP request headers

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

