# Zaun.NluApi

All URIs are relative to *https://virtserver.swaggerhub.com/kata.ai/zaun-q2/1.0.0*

Method | HTTP request | Description
------------- | ------------- | -------------
[**nlusProfilesGet**](NluApi.md#nlusProfilesGet) | **GET** /nlus/profiles | Get list profile NLU
[**nlusPublicGet**](NluApi.md#nlusPublicGet) | **GET** /nlus/public | Get list public NLU
[**projectsProjectIdNluGet**](NluApi.md#projectsProjectIdNluGet) | **GET** /projects/{projectId}/nlu | Get detail nlu
[**projectsProjectIdNlusNluNameDebugPost**](NluApi.md#projectsProjectIdNlusNluNameDebugPost) | **POST** /projects/{projectId}/nlus/{nluName}/debug | Train NLU
[**projectsProjectIdNlusNluNameEntitiesEntityNameDelete**](NluApi.md#projectsProjectIdNlusNluNameEntitiesEntityNameDelete) | **DELETE** /projects/{projectId}/nlus/{nluName}/entities/{entityName} | Delete entity by name
[**projectsProjectIdNlusNluNameEntitiesEntityNameGet**](NluApi.md#projectsProjectIdNlusNluNameEntitiesEntityNameGet) | **GET** /projects/{projectId}/nlus/{nluName}/entities/{entityName} | Get Entity of nlu
[**projectsProjectIdNlusNluNameEntitiesEntityNamePut**](NluApi.md#projectsProjectIdNlusNluNameEntitiesEntityNamePut) | **PUT** /projects/{projectId}/nlus/{nluName}/entities/{entityName} | Update entity by name
[**projectsProjectIdNlusNluNameEntitiesGet**](NluApi.md#projectsProjectIdNlusNluNameEntitiesGet) | **GET** /projects/{projectId}/nlus/{nluName}/entities | Get list Entity of nlu
[**projectsProjectIdNlusNluNameEntitiesPost**](NluApi.md#projectsProjectIdNlusNluNameEntitiesPost) | **POST** /projects/{projectId}/nlus/{nluName}/entities | Create entity
[**projectsProjectIdNlusNluNameHasActiveJobGet**](NluApi.md#projectsProjectIdNlusNluNameHasActiveJobGet) | **GET** /projects/{projectId}/nlus/{nluName}/has_active_job | Check NLU has active training job
[**projectsProjectIdNlusNluNameIssueTokenGet**](NluApi.md#projectsProjectIdNlusNluNameIssueTokenGet) | **GET** /projects/{projectId}/nlus/{nluName}/issue_token | Get token
[**projectsProjectIdNlusNluNameLogGet**](NluApi.md#projectsProjectIdNlusNluNameLogGet) | **GET** /projects/{projectId}/nlus/{nluName}/log | Get analytic data
[**projectsProjectIdNlusNluNamePredictPost**](NluApi.md#projectsProjectIdNlusNluNamePredictPost) | **POST** /projects/{projectId}/nlus/{nluName}/predict | Train NLU
[**projectsProjectIdNlusNluNameSnapshotGet**](NluApi.md#projectsProjectIdNlusNluNameSnapshotGet) | **GET** /projects/{projectId}/nlus/{nluName}/snapshot | Snapshot NLU
[**projectsProjectIdNlusNluNameTrainPost**](NluApi.md#projectsProjectIdNlusNluNameTrainPost) | **POST** /projects/{projectId}/nlus/{nluName}/train | Train NLU
[**projectsProjectIdNlusNluNameTrainingDataGet**](NluApi.md#projectsProjectIdNlusNluNameTrainingDataGet) | **GET** /projects/{projectId}/nlus/{nluName}/training_data | Get analytic data


<a name="nlusProfilesGet"></a>
# **nlusProfilesGet**
> Object nlusProfilesGet()

Get list profile NLU

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.nlusProfilesGet(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

**Object**

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="nlusPublicGet"></a>
# **nlusPublicGet**
> ['String'] nlusPublicGet()

Get list public NLU

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.nlusPublicGet(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

**['String']**

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNluGet"></a>
# **projectsProjectIdNluGet**
> Object projectsProjectIdNluGet(projectId)

Get detail nlu

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Name of nlu


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNluGet(projectId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Name of nlu | 

### Return type

**Object**

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameDebugPost"></a>
# **projectsProjectIdNlusNluNameDebugPost**
> InlineResponse20014 projectsProjectIdNlusNluNameDebugPost(projectId, nluName, opts)

Train NLU

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Name of nlu

var nluName = "nluName_example"; // String | Name of nlu

var opts = { 
  'sentence': "sentence_example" // String | Data to predict
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameDebugPost(projectId, nluName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Name of nlu | 
 **nluName** | **String**| Name of nlu | 
 **sentence** | **String**| Data to predict | [optional] 

### Return type

[**InlineResponse20014**](InlineResponse20014.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameEntitiesEntityNameDelete"></a>
# **projectsProjectIdNlusNluNameEntitiesEntityNameDelete**
> 'Boolean' projectsProjectIdNlusNluNameEntitiesEntityNameDelete(projectId, nluName, entityName)

Delete entity by name

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Project ID

var nluName = "nluName_example"; // String | Name of nlu

var entityName = "entityName_example"; // String | Name of entity


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameEntitiesEntityNameDelete(projectId, nluName, entityName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Project ID | 
 **nluName** | **String**| Name of nlu | 
 **entityName** | **String**| Name of entity | 

### Return type

**'Boolean'**

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameEntitiesEntityNameGet"></a>
# **projectsProjectIdNlusNluNameEntitiesEntityNameGet**
> {'String': GeistEntity} projectsProjectIdNlusNluNameEntitiesEntityNameGet(projectId, nluName, entityName)

Get Entity of nlu

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Project ID

var nluName = "nluName_example"; // String | Name of nlu

var entityName = "entityName_example"; // String | Name of Entity


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameEntitiesEntityNameGet(projectId, nluName, entityName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Project ID | 
 **nluName** | **String**| Name of nlu | 
 **entityName** | **String**| Name of Entity | 

### Return type

[**{'String': GeistEntity}**](GeistEntity.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameEntitiesEntityNamePut"></a>
# **projectsProjectIdNlusNluNameEntitiesEntityNamePut**
> GeistEntity projectsProjectIdNlusNluNameEntitiesEntityNamePut(projectId, nluName, entityName, body)

Update entity by name

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Project ID

var nluName = "nluName_example"; // String | Name of nlu

var entityName = "entityName_example"; // String | Name of entity

var body = new Zaun.GeistEntity(); // GeistEntity | Nlu


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameEntitiesEntityNamePut(projectId, nluName, entityName, body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Project ID | 
 **nluName** | **String**| Name of nlu | 
 **entityName** | **String**| Name of entity | 
 **body** | [**GeistEntity**](GeistEntity.md)| Nlu | 

### Return type

[**GeistEntity**](GeistEntity.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameEntitiesGet"></a>
# **projectsProjectIdNlusNluNameEntitiesGet**
> GeistEntity projectsProjectIdNlusNluNameEntitiesGet(projectId, nluName)

Get list Entity of nlu

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Project ID

var nluName = "nluName_example"; // String | Name of nlu


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameEntitiesGet(projectId, nluName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Project ID | 
 **nluName** | **String**| Name of nlu | 

### Return type

[**GeistEntity**](GeistEntity.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameEntitiesPost"></a>
# **projectsProjectIdNlusNluNameEntitiesPost**
> GeistEntity projectsProjectIdNlusNluNameEntitiesPost(projectId, nluName, body)

Create entity

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Project ID

var nluName = "nluName_example"; // String | Name of nlu

var body = new Zaun.GeistEntity(); // GeistEntity | Entity object


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameEntitiesPost(projectId, nluName, body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Project ID | 
 **nluName** | **String**| Name of nlu | 
 **body** | [**GeistEntity**](GeistEntity.md)| Entity object | 

### Return type

[**GeistEntity**](GeistEntity.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameHasActiveJobGet"></a>
# **projectsProjectIdNlusNluNameHasActiveJobGet**
> 'Boolean' projectsProjectIdNlusNluNameHasActiveJobGet(projectId, nluName)

Check NLU has active training job

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Project id

var nluName = "nluName_example"; // String | Name of nlu


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameHasActiveJobGet(projectId, nluName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Project id | 
 **nluName** | **String**| Name of nlu | 

### Return type

**'Boolean'**

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameIssueTokenGet"></a>
# **projectsProjectIdNlusNluNameIssueTokenGet**
> 'String' projectsProjectIdNlusNluNameIssueTokenGet(projectId, nluName)

Get token

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Name of nlu

var nluName = "nluName_example"; // String | Name of nlu


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameIssueTokenGet(projectId, nluName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Name of nlu | 
 **nluName** | **String**| Name of nlu | 

### Return type

**'String'**

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameLogGet"></a>
# **projectsProjectIdNlusNluNameLogGet**
> InlineResponse20012 projectsProjectIdNlusNluNameLogGet(projectId, nluName, opts)

Get analytic data

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Project ID

var nluName = "nluName_example"; // String | Name of nlu

var opts = { 
  'page': 8.14, // Number | Page
  'limit': 8.14 // Number | Limit
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameLogGet(projectId, nluName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Project ID | 
 **nluName** | **String**| Name of nlu | 
 **page** | **Number**| Page | [optional] 
 **limit** | **Number**| Limit | [optional] 

### Return type

[**InlineResponse20012**](InlineResponse20012.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNamePredictPost"></a>
# **projectsProjectIdNlusNluNamePredictPost**
> InlineResponse20013 projectsProjectIdNlusNluNamePredictPost(projectId, nluName, opts)

Train NLU

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Name of nlu

var nluName = "nluName_example"; // String | Name of nlu

var opts = { 
  'sentence': "sentence_example", // String | Data to predict
  'file': "/path/to/file.txt" // File | Data to predict
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNamePredictPost(projectId, nluName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Name of nlu | 
 **nluName** | **String**| Name of nlu | 
 **sentence** | **String**| Data to predict | [optional] 
 **file** | **File**| Data to predict | [optional] 

### Return type

[**InlineResponse20013**](InlineResponse20013.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameSnapshotGet"></a>
# **projectsProjectIdNlusNluNameSnapshotGet**
> 'String' projectsProjectIdNlusNluNameSnapshotGet(projectId, nluName)

Snapshot NLU

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Name of nlu

var nluName = "nluName_example"; // String | Name of nlu


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameSnapshotGet(projectId, nluName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Name of nlu | 
 **nluName** | **String**| Name of nlu | 

### Return type

**'String'**

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameTrainPost"></a>
# **projectsProjectIdNlusNluNameTrainPost**
> InlineResponse20010 projectsProjectIdNlusNluNameTrainPost(projectId, nluName, opts)

Train NLU

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Name of nlu

var nluName = "nluName_example"; // String | Name of nlu

var opts = { 
  'sentence': "sentence_example", // String | NLU training data
  'file': "/path/to/file.txt" // File | NLU training data. Accepted formats: JSON/YAML/TXT
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameTrainPost(projectId, nluName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Name of nlu | 
 **nluName** | **String**| Name of nlu | 
 **sentence** | **String**| NLU training data | [optional] 
 **file** | **File**| NLU training data. Accepted formats: JSON/YAML/TXT | [optional] 

### Return type

[**InlineResponse20010**](InlineResponse20010.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

<a name="projectsProjectIdNlusNluNameTrainingDataGet"></a>
# **projectsProjectIdNlusNluNameTrainingDataGet**
> InlineResponse20011 projectsProjectIdNlusNluNameTrainingDataGet(projectId, nluName, opts)

Get analytic data

### Example
```javascript
var Zaun = require('zaun');
var defaultClient = Zaun.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new Zaun.NluApi();

var projectId = "projectId_example"; // String | Project ID

var nluName = "nluName_example"; // String | Name of nlu

var opts = { 
  'page': 8.14 // Number | Page
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.projectsProjectIdNlusNluNameTrainingDataGet(projectId, nluName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **projectId** | **String**| Project ID | 
 **nluName** | **String**| Name of nlu | 
 **page** | **Number**| Page | [optional] 

### Return type

[**InlineResponse20011**](InlineResponse20011.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

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

