# AgilegravityagileAiTrainerserverClient.ExportImportApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**exportVersion**](ExportImportApi.md#exportVersion) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/export | 
[**importVersion**](ExportImportApi.md#importVersion) | **POST** /api/v1/accounts/{accountId}/projects/{projectId}/import-version | 

<a name="exportVersion"></a>
# **exportVersion**
> &#x27;Blob&#x27; exportVersion(accountId, projectId, versionId)



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

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

**&#x27;Blob&#x27;**

### Authorization

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

### HTTP request headers

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

<a name="importVersion"></a>
# **importVersion**
> ImportClone importVersion(accountIdprojectId)



import a version into a 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.ExportImportApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId

apiInstance.importVersion(accountIdprojectId).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 | 
 **zip** | **Blob**|  | [optional] 

### Return type

[**ImportClone**](ImportClone.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

