# AgilegravityagileAiTrainerserverClient.MicroIntendsApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createMicroIntend**](MicroIntendsApi.md#createMicroIntend) | **POST** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-intends | 
[**deleteMicroIntend**](MicroIntendsApi.md#deleteMicroIntend) | **DELETE** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-intends/{microIntendId} | 
[**getMicroIntend**](MicroIntendsApi.md#getMicroIntend) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-intends/{microIntendId} | 
[**getMicroIntends**](MicroIntendsApi.md#getMicroIntends) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-intends | 
[**updateMicroIntend**](MicroIntendsApi.md#updateMicroIntend) | **PUT** /api/v1/accounts/{accountId}/projects/{projectId}/versions/{versionId}/micro-intends/{microIntendId} | 

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



create the MicroIntend of a B2BPartner

### 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.MicroIntendsApi();
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.createMicroIntend(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="deleteMicroIntend"></a>
# **deleteMicroIntend**
> MicroIntend deleteMicroIntend(accountId, projectId, versionId, microIntendId)



delete a MicroIntend for a B2BPartner by id

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

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

### Return type

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

### Authorization

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

### HTTP request headers

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

<a name="getMicroIntend"></a>
# **getMicroIntend**
> MicroIntend getMicroIntend(accountId, projectId, versionId, microIntendId)



get a MicroIntend list of a B2BPartner by id

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

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

### Return type

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

### Authorization

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

### HTTP request headers

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

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



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

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

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

### Authorization

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

### HTTP request headers

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

<a name="updateMicroIntend"></a>
# **updateMicroIntend**
> MicroIntend updateMicroIntend(bodyaccountIdprojectIdversionIdmicroIntendId)



update a MicroIntend for a B2BPartner by id

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

apiInstance.updateMicroIntend(bodyaccountIdprojectIdversionIdmicroIntendId).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 | 
 **microIntendId** | **String**| microIntendId | 

### 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

