# VmosoTaskApi.TaskApi

All URIs are relative to *https://www.vmoso.com/svc*

Method | HTTP request | Description
------------- | ------------- | -------------
[**addParticipants**](TaskApi.md#addParticipants) | **PUT** /tasks/{key}/participants/add | 
[**checkAttachmentsInTask**](TaskApi.md#checkAttachmentsInTask) | **GET** /tasks/{key}/checkAttachmentKeys | 
[**checkTemplateName**](TaskApi.md#checkTemplateName) | **POST** /tasks/checktplname | 
[**cloneToDraft**](TaskApi.md#cloneToDraft) | **POST** /tasks/{key}/saveAsDraft | 
[**cloneToTemplate**](TaskApi.md#cloneToTemplate) | **POST** /tasks/{key}/saveAsTemplate | 
[**createChat**](TaskApi.md#createChat) | **POST** /tasks/createChat | 
[**createDraft**](TaskApi.md#createDraft) | **POST** /tasks/createDraft | 
[**createFromDraft**](TaskApi.md#createFromDraft) | **POST** /tasks/createTaskByDraft/{key} | 
[**createTask**](TaskApi.md#createTask) | **POST** /tasks | 
[**createTemplate**](TaskApi.md#createTemplate) | **POST** /tasks/createTemplate | 
[**deleteTask**](TaskApi.md#deleteTask) | **DELETE** /tasks/{key} | 
[**getChatBrief**](TaskApi.md#getChatBrief) | **GET** /tasks/getChatBrief/{key} | 
[**getDraft**](TaskApi.md#getDraft) | **GET** /tasks/viewDraft/{key} | 
[**getFeedbackTask**](TaskApi.md#getFeedbackTask) | **GET** /tasks/feedback | 
[**getHistory**](TaskApi.md#getHistory) | **GET** /tasks/{key}/history | 
[**getMembersForReminder**](TaskApi.md#getMembersForReminder) | **GET** /tasks/{key}/remindableMember | 
[**getParticipants**](TaskApi.md#getParticipants) | **GET** /tasks/{key}/participants/sort/{sortType} | 
[**getRelatedTasks**](TaskApi.md#getRelatedTasks) | **GET** /tasks/{key}/getRelated/ | 
[**getTask**](TaskApi.md#getTask) | **GET** /tasks/{key} | 
[**getTemplate**](TaskApi.md#getTemplate) | **GET** /tasks/viewTemplate/{key} | 
[**getUserRolesInTask**](TaskApi.md#getUserRolesInTask) | **GET** /tasks/{key}/checkUserKeys | 
[**rejectTask**](TaskApi.md#rejectTask) | **PUT** /tasks/{key}/reject | 
[**removeParticipants**](TaskApi.md#removeParticipants) | **PUT** /tasks/{key}/participants/remove | 
[**sendReminder**](TaskApi.md#sendReminder) | **PUT** /tasks/{key}/remind | 
[**unsubscribeAlien**](TaskApi.md#unsubscribeAlien) | **POST** /tasks/alienUnsubscribe | 
[**updateDraft**](TaskApi.md#updateDraft) | **PUT** /tasks/updateDraft | 
[**updateState**](TaskApi.md#updateState) | **PUT** /tasks/{key}/setState/{stateType} | 
[**updateStatus**](TaskApi.md#updateStatus) | **PUT** /tasks/{key}/setStatus/{statusType} | 
[**updateTask**](TaskApi.md#updateTask) | **PUT** /tasks/{key} | 
[**updateTemplate**](TaskApi.md#updateTemplate) | **PUT** /tasks/updateTemplate | 
[**verifyParticipantEmails**](TaskApi.md#verifyParticipantEmails) | **GET** /tasks/participants/checkEmails | 


<a name="addParticipants"></a>
# **addParticipants**
> AddParticipantsResult addParticipants(key, input)





### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var input = new VmosoTaskApi.AddParticipantsInput(); // AddParticipantsInput | AddParticipants Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **input** | [**AddParticipantsInput**](AddParticipantsInput.md)| AddParticipants Input | 

### Return type

[**AddParticipantsResult**](AddParticipantsResult.md)

### Authorization

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

### HTTP request headers

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

<a name="checkAttachmentsInTask"></a>
# **checkAttachmentsInTask**
> CheckAttachmentsInTaskResult checkAttachmentsInTask(key, opts)



check attachments whether are in task

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var opts = { 
  'attachmentKeys': "attachmentKeys_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **attachmentKeys** | **String**|  | [optional] 

### Return type

[**CheckAttachmentsInTaskResult**](CheckAttachmentsInTaskResult.md)

### Authorization

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

### HTTP request headers

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

<a name="checkTemplateName"></a>
# **checkTemplateName**
> CheckTemplateNameResult checkTemplateName(input)



### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var input = new VmosoTaskApi.CheckTemplateNameInput(); // CheckTemplateNameInput | CheckTemplateName Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**CheckTemplateNameInput**](CheckTemplateNameInput.md)| CheckTemplateName Input | 

### Return type

[**CheckTemplateNameResult**](CheckTemplateNameResult.md)

### Authorization

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

### HTTP request headers

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

<a name="cloneToDraft"></a>
# **cloneToDraft**
> CloneToDraftResult cloneToDraft(key)



create draft

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 

### Return type

[**CloneToDraftResult**](CloneToDraftResult.md)

### Authorization

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

### HTTP request headers

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

<a name="cloneToTemplate"></a>
# **cloneToTemplate**
> CloneToTemplateResult cloneToTemplate(key, input)



create template

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var input = new VmosoTaskApi.CloneToTemplateInput(); // CloneToTemplateInput | CloneToTemplate Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **input** | [**CloneToTemplateInput**](CloneToTemplateInput.md)| CloneToTemplate Input | 

### Return type

[**CloneToTemplateResult**](CloneToTemplateResult.md)

### Authorization

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

### HTTP request headers

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

<a name="createChat"></a>
# **createChat**
> CreateChatResult createChat(input)



create chat

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var input = new VmosoTaskApi.CreateChatInput(); // CreateChatInput | CreateChat Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**CreateChatInput**](CreateChatInput.md)| CreateChat Input | 

### Return type

[**CreateChatResult**](CreateChatResult.md)

### Authorization

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

### HTTP request headers

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

<a name="createDraft"></a>
# **createDraft**
> CreateDraftResult createDraft(input)



create draft

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var input = new VmosoTaskApi.CreateDraftInput(); // CreateDraftInput | CreateDraft Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**CreateDraftInput**](CreateDraftInput.md)| CreateDraft Input | 

### Return type

[**CreateDraftResult**](CreateDraftResult.md)

### Authorization

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

### HTTP request headers

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

<a name="createFromDraft"></a>
# **createFromDraft**
> CreateFromDraftResult createFromDraft(key, input)



create task by draft

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var input = new VmosoTaskApi.CreateFromDraftInput(); // CreateFromDraftInput | CreateFromDraft Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **input** | [**CreateFromDraftInput**](CreateFromDraftInput.md)| CreateFromDraft Input | 

### Return type

[**CreateFromDraftResult**](CreateFromDraftResult.md)

### Authorization

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

### HTTP request headers

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

<a name="createTask"></a>
# **createTask**
> CreateTaskResult createTask(input)





### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var input = new VmosoTaskApi.CreateTaskInput(); // CreateTaskInput | CreateTask Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**CreateTaskInput**](CreateTaskInput.md)| CreateTask Input | 

### Return type

[**CreateTaskResult**](CreateTaskResult.md)

### Authorization

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

### HTTP request headers

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

<a name="createTemplate"></a>
# **createTemplate**
> CreateTemplateResult createTemplate(input)



create template

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var input = new VmosoTaskApi.CreateTemplateInput(); // CreateTemplateInput | CreateTemplate Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**CreateTemplateInput**](CreateTemplateInput.md)| CreateTemplate Input | 

### Return type

[**CreateTemplateResult**](CreateTemplateResult.md)

### Authorization

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

### HTTP request headers

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

<a name="deleteTask"></a>
# **deleteTask**
> DeleteTaskResult deleteTask(key)



delete task

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | delete task key


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**| delete task key | 

### Return type

[**DeleteTaskResult**](DeleteTaskResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getChatBrief"></a>
# **getChatBrief**
> GetChatBriefResult getChatBrief(key)



get chat brief

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 

### Return type

[**GetChatBriefResult**](GetChatBriefResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getDraft"></a>
# **getDraft**
> GetDraftResult getDraft(key)



get draft by key

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 

### Return type

[**GetDraftResult**](GetDraftResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getFeedbackTask"></a>
# **getFeedbackTask**
> GetFeedbackTaskResult getFeedbackTask()



get feed back task

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

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

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

### Return type

[**GetFeedbackTaskResult**](GetFeedbackTaskResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getHistory"></a>
# **getHistory**
> GetHistoryResult getHistory(key, opts)



get history

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var opts = { 
  'options': "options_example", // String | 
  'pg': "pg_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **options** | **String**|  | [optional] 
 **pg** | **String**|  | [optional] 

### Return type

[**GetHistoryResult**](GetHistoryResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getMembersForReminder"></a>
# **getMembersForReminder**
> GetMembersForReminderResult getMembersForReminder(key, opts)



get remindable members

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var opts = { 
  'pg': "pg_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **pg** | **String**|  | [optional] 

### Return type

[**GetMembersForReminderResult**](GetMembersForReminderResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getParticipants"></a>
# **getParticipants**
> GetParticipantsResult getParticipants(key, sortType, opts)



### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var sortType = "sortType_example"; // String | 

var opts = { 
  'options': "options_example", // String | 
  'format': "format_example", // String | 
  'pg': "pg_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **sortType** | **String**|  | 
 **options** | **String**|  | [optional] 
 **format** | **String**|  | [optional] 
 **pg** | **String**|  | [optional] 

### Return type

[**GetParticipantsResult**](GetParticipantsResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getRelatedTasks"></a>
# **getRelatedTasks**
> GetRelatedTasksResult getRelatedTasks(key)



### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 

### Return type

[**GetRelatedTasksResult**](GetRelatedTasksResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getTask"></a>
# **getTask**
> GetTaskResult getTask(key)



Get taks record for a given task key.

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 

### Return type

[**GetTaskResult**](GetTaskResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getTemplate"></a>
# **getTemplate**
> GetTemplateResult getTemplate(key)



### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 

### Return type

[**GetTemplateResult**](GetTemplateResult.md)

### Authorization

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

### HTTP request headers

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

<a name="getUserRolesInTask"></a>
# **getUserRolesInTask**
> GetUserRolesInTaskResult getUserRolesInTask(key, opts)



check users whether are in task

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var opts = { 
  'userKeys': "userKeys_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **userKeys** | **String**|  | [optional] 

### Return type

[**GetUserRolesInTaskResult**](GetUserRolesInTaskResult.md)

### Authorization

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

### HTTP request headers

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

<a name="rejectTask"></a>
# **rejectTask**
> RejectTaskResult rejectTask(key)



reject task

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 

### Return type

[**RejectTaskResult**](RejectTaskResult.md)

### Authorization

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

### HTTP request headers

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

<a name="removeParticipants"></a>
# **removeParticipants**
> RemoveParticipantsResult removeParticipants(key, input)



remove users

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var input = new VmosoTaskApi.RemoveParticipantsInput(); // RemoveParticipantsInput | RemoveParticipants Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **input** | [**RemoveParticipantsInput**](RemoveParticipantsInput.md)| RemoveParticipants Input | 

### Return type

[**RemoveParticipantsResult**](RemoveParticipantsResult.md)

### Authorization

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

### HTTP request headers

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

<a name="sendReminder"></a>
# **sendReminder**
> SendReminderResult sendReminder(key, input)



send reminder

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var input = new VmosoTaskApi.SendReminderInput(); // SendReminderInput | SendReminder Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **input** | [**SendReminderInput**](SendReminderInput.md)| SendReminder Input | 

### Return type

[**SendReminderResult**](SendReminderResult.md)

### Authorization

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

### HTTP request headers

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

<a name="unsubscribeAlien"></a>
# **unsubscribeAlien**
> UnsubscribeAlienResult unsubscribeAlien(input)



alien unsubscribe

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var input = new VmosoTaskApi.UnsubscribeAlienInput(); // UnsubscribeAlienInput | UnsubscribeAlien Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**UnsubscribeAlienInput**](UnsubscribeAlienInput.md)| UnsubscribeAlien Input | 

### Return type

[**UnsubscribeAlienResult**](UnsubscribeAlienResult.md)

### Authorization

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

### HTTP request headers

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

<a name="updateDraft"></a>
# **updateDraft**
> UpdateDraftResult updateDraft(input)



update draft

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var input = new VmosoTaskApi.UpdateDraftInput(); // UpdateDraftInput | UpdateDraft Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**UpdateDraftInput**](UpdateDraftInput.md)| UpdateDraft Input | 

### Return type

[**UpdateDraftResult**](UpdateDraftResult.md)

### Authorization

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

### HTTP request headers

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

<a name="updateState"></a>
# **updateState**
> UpdateStateResult updateState(key, stateType)



update task state

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var stateType = "stateType_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **stateType** | **String**|  | 

### Return type

[**UpdateStateResult**](UpdateStateResult.md)

### Authorization

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

### HTTP request headers

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

<a name="updateStatus"></a>
# **updateStatus**
> UpdateStatusResult updateStatus(key, statusType)



update user status

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var statusType = "statusType_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **statusType** | **String**|  | 

### Return type

[**UpdateStatusResult**](UpdateStatusResult.md)

### Authorization

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

### HTTP request headers

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

<a name="updateTask"></a>
# **updateTask**
> UpdateTaskResult updateTask(key, input)



update task

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var key = "key_example"; // String | 

var input = new VmosoTaskApi.UpdateTaskInput(); // UpdateTaskInput | UpdateTask Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **input** | [**UpdateTaskInput**](UpdateTaskInput.md)| UpdateTask Input | 

### Return type

[**UpdateTaskResult**](UpdateTaskResult.md)

### Authorization

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

### HTTP request headers

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

<a name="updateTemplate"></a>
# **updateTemplate**
> UpdateTemplateResult updateTemplate(input)



update template

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var input = new VmosoTaskApi.UpdateTemplateInput(); // UpdateTemplateInput | UpdateTemplate Input


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**UpdateTemplateInput**](UpdateTemplateInput.md)| UpdateTemplate Input | 

### Return type

[**UpdateTemplateResult**](UpdateTemplateResult.md)

### Authorization

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

### HTTP request headers

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

<a name="verifyParticipantEmails"></a>
# **verifyParticipantEmails**
> VerifyParticipantEmailsResult verifyParticipantEmails(restricted, email)



check user email

### Example
```javascript
var VmosoTaskApi = require('vmoso-task-api');
var defaultClient = VmosoTaskApi.ApiClient.default;

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

var apiInstance = new VmosoTaskApi.TaskApi();

var restricted = 56; // Integer | 

var email = "email_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **restricted** | **Integer**|  | 
 **email** | **String**|  | 

### Return type

[**VerifyParticipantEmailsResult**](VerifyParticipantEmailsResult.md)

### Authorization

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

### HTTP request headers

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

