# AgilegravityagileAiTrainerserverClient.MicroMacroApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createMicroMacro**](MicroMacroApi.md#createMicroMacro) | **POST** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-macro | 
[**deleteMicroMacro**](MicroMacroApi.md#deleteMicroMacro) | **DELETE** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-macro/{microMacroId} | 
[**getMicroMacro**](MicroMacroApi.md#getMicroMacro) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-macro/{microMacroId} | 
[**getMicroMacros**](MicroMacroApi.md#getMicroMacros) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-macro | 
[**updateMicroMacro**](MicroMacroApi.md#updateMicroMacro) | **PUT** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-macro/{microMacroId} | 

<a name="createMicroMacro"></a>
# **createMicroMacro**
> MicroIntend createMicroMacro(bodyaccountIdprojectIdversionId)



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

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

```

### Parameters

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

### Return type

[**MicroIntend**](MicroIntend.md)

### Authorization

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

### HTTP request headers

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

<a name="deleteMicroMacro"></a>
# **deleteMicroMacro**
> MicroMacro deleteMicroMacro(accountId, projectId, versionId, microMacroId)



delete a MicroMacro by accountId, projectId , versionId, microMacroId

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

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

### Return type

[**MicroMacro**](MicroMacro.md)

### Authorization

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

### HTTP request headers

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

<a name="getMicroMacro"></a>
# **getMicroMacro**
> MicroMacro getMicroMacro(accountId, projectId, versionId, microMacroId)



get a MicroIntend list by accountId, projectId , versionId, microMacroId

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

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

### Return type

[**MicroMacro**](MicroMacro.md)

### Authorization

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

### HTTP request headers

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

<a name="getMicroMacros"></a>
# **getMicroMacros**
> [MicroMacro] getMicroMacros(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.MicroMacroApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let versionId = "versionId_example"; // String | versionId

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

[**[MicroMacro]**](MicroMacro.md)

### Authorization

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

### HTTP request headers

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

<a name="updateMicroMacro"></a>
# **updateMicroMacro**
> MicroMacro updateMicroMacro(bodyaccountIdprojectIdversionIdmicroMacroId)



update a MicroMacro by accountId, projectId , versionId, microMacroId

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

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

```

### Parameters

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

### Return type

[**MicroMacro**](MicroMacro.md)

### Authorization

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

### HTTP request headers

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

