# AgilegravityagileAiTrainerserverClient.ProjectVersionApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createVersion**](ProjectVersionApi.md#createVersion) | **POST** /api/v1/accounts/{accountId}/projects/{projectId}/versions | 
[**deleteVersion**](ProjectVersionApi.md#deleteVersion) | **DELETE** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId} | 
[**getVersion**](ProjectVersionApi.md#getVersion) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId} | 
[**getVersions**](ProjectVersionApi.md#getVersions) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions | 
[**updateVersion**](ProjectVersionApi.md#updateVersion) | **PUT** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId} | 

<a name="createVersion"></a>
# **createVersion**
> Version createVersion(bodyaccountIdprojectId)



create the 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.ProjectVersionApi();
let body = new AgilegravityagileAiTrainerserverClient.Version(); // Version | 
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId

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

```

### Parameters

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

### Return type

[**Version**](Version.md)

### Authorization

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

### HTTP request headers

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

<a name="deleteVersion"></a>
# **deleteVersion**
> Version deleteVersion(accountId, projectId, versionId)



delete a Version for a accountId projectid versinId

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

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

[**Version**](Version.md)

### Authorization

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

### HTTP request headers

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

<a name="getVersion"></a>
# **getVersion**
> Version getVersion(accountId, projectId, versionId)



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

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

[**Version**](Version.md)

### Authorization

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

### HTTP request headers

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

<a name="getVersions"></a>
# **getVersions**
> [Version] getVersions(accountId, projectId)



get a Version list by accountId projectid

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

apiInstance.getVersions(accountId, projectId).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 | 

### Return type

[**[Version]**](Version.md)

### Authorization

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

### HTTP request headers

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

<a name="updateVersion"></a>
# **updateVersion**
> Version updateVersion(bodyaccountIdprojectIdversionId)



update a Version for 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.ProjectVersionApi();
let body = new AgilegravityagileAiTrainerserverClient.Version(); // Version | 
let accountId = "accountId_example"; // String | accountId
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId

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

```

### Parameters

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

### Return type

[**Version**](Version.md)

### Authorization

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

### HTTP request headers

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

