# AgilegravityagileAiTrainerserverClient.MachineLearningModelsApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createMachineLearningModel**](MachineLearningModelsApi.md#createMachineLearningModel) | **POST** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/machine-learning-models | 
[**deleteMachineLearningModel**](MachineLearningModelsApi.md#deleteMachineLearningModel) | **DELETE** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/machine-learning-models/{machineLearningModelId} | 
[**getMachineLearningModel**](MachineLearningModelsApi.md#getMachineLearningModel) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/machine-learning-models/{machineLearningModelId} | 
[**getMachineLearningModels**](MachineLearningModelsApi.md#getMachineLearningModels) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/machine-learning-models | 
[**updateMachineLearningModel**](MachineLearningModelsApi.md#updateMachineLearningModel) | **PUT** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/machine-learning-models/{machineLearningModelId} | 

<a name="createMachineLearningModel"></a>
# **createMachineLearningModel**
> MlModel createMachineLearningModel(bodyaccountIdprojectIdversionId)



createt a MachineLearningModels for a given account project version

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.MachineLearningModelsApi();
let body = new AgilegravityagileAiTrainerserverClient.MlModel(); // MlModel | 
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId

apiInstance.createMachineLearningModel(bodyaccountIdprojectIdversionId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**MlModel**](MlModel.md)|  | 
 **accountId** | **String**| accountId | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 

### Return type

[**MlModel**](MlModel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="deleteMachineLearningModel"></a>
# **deleteMachineLearningModel**
> MlModel deleteMachineLearningModel(accountId, projectId, versionId, machineLearningModelId)



delete a MachineLearningModel of a given account project version

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.MachineLearningModelsApi();
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let machineLearningModelId = "machineLearningModelId_example"; // String | MachineLearningModelId

apiInstance.deleteMachineLearningModel(accountId, projectId, versionId, machineLearningModelId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountId | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 
 **machineLearningModelId** | **String**| MachineLearningModelId | 

### Return type

[**MlModel**](MlModel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="getMachineLearningModel"></a>
# **getMachineLearningModel**
> MlModel getMachineLearningModel(accountId, projectId, versionId, machineLearningModelId)



get a MachineLearningModel of a given account project version

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.MachineLearningModelsApi();
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let machineLearningModelId = "machineLearningModelId_example"; // String | MachineLearningModelId

apiInstance.getMachineLearningModel(accountId, projectId, versionId, machineLearningModelId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountId | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 
 **machineLearningModelId** | **String**| MachineLearningModelId | 

### Return type

[**MlModel**](MlModel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="getMachineLearningModels"></a>
# **getMachineLearningModels**
> [MlModel] getMachineLearningModels(accountId, projectId, versionId)



get the Machine Learning Models list of a given account project version

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.MachineLearningModelsApi();
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId

apiInstance.getMachineLearningModels(accountId, projectId, versionId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountId | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 

### Return type

[**[MlModel]**](MlModel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="updateMachineLearningModel"></a>
# **updateMachineLearningModel**
> MlModel updateMachineLearningModel(bodyaccountIdprojectIdversionIdmachineLearningModelId)



upate a MachineLearningModel

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.MachineLearningModelsApi();
let body = new AgilegravityagileAiTrainerserverClient.MlModel(); // MlModel | 
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let machineLearningModelId = "machineLearningModelId_example"; // String | MachineLearningModelId

apiInstance.updateMachineLearningModel(bodyaccountIdprojectIdversionIdmachineLearningModelId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**MlModel**](MlModel.md)|  | 
 **accountId** | **String**| accountId | 
 **projectId** | **String**| projectId | 
 **versionId** | **String**| versionId | 
 **machineLearningModelId** | **String**| MachineLearningModelId | 

### Return type

[**MlModel**](MlModel.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

