# AgilegravityagileAiTrainerserverClient.MachineLearningJobApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createJob**](MachineLearningJobApi.md#createJob) | **POST** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/machine-learning-job | 
[**deleteJob**](MachineLearningJobApi.md#deleteJob) | **DELETE** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/machine-learning/jobId/{jobId} | 
[**getJob**](MachineLearningJobApi.md#getJob) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/machine-learning/jobId/{jobId} | 
[**getJobs**](MachineLearningJobApi.md#getJobs) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/machine-learning-job | 

<a name="createJob"></a>
# **createJob**
> QueueItem createJob(bodyaccountIdprojectIdversionId)



create the Job by accountId, projectId , versionId

### 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.MachineLearningJobApi();
let body = new AgilegravityagileAiTrainerserverClient.QueueItem(); // QueueItem | 
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId

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

```

### Parameters

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

### Return type

[**QueueItem**](QueueItem.md)

### Authorization

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

### HTTP request headers

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

<a name="deleteJob"></a>
# **deleteJob**
> QueueItem deleteJob(accountId, projectId, versionId, jobId)



delete a MicroMacro by accountId, projectId , versionId, jobId

### 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.MachineLearningJobApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let jobId = "jobId_example"; // String | jobId

apiInstance.deleteJob(accountId, projectId, versionId, jobId).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 | 
 **jobId** | **String**| jobId | 

### Return type

[**QueueItem**](QueueItem.md)

### Authorization

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

### HTTP request headers

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

<a name="getJob"></a>
# **getJob**
> QueueItem getJob(accountId, projectId, versionId, jobId)



get a Job list by accountId, projectId , versionId, jobId

### 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.MachineLearningJobApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId
let jobId = "jobId_example"; // String | jobId

apiInstance.getJob(accountId, projectId, versionId, jobId).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 | 
 **jobId** | **String**| jobId | 

### Return type

[**QueueItem**](QueueItem.md)

### Authorization

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

### HTTP request headers

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

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



get the getMicroMacro list of a accountId, projectId , versionId

### 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.MachineLearningJobApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId

apiInstance.getJobs(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

[**[QueueItem]**](QueueItem.md)

### Authorization

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

### HTTP request headers

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

