# VmosoApi.SpaceApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**addContacts**](SpaceApi.md#addContacts) | **POST** /folders/contacts/{contactType}/add | 
[**addItems**](SpaceApi.md#addItems) | **POST** /folders/{folderKey}/contents | 
[**addParticipants**](SpaceApi.md#addParticipants) | **PUT** /folders/{key}/participants/add | 
[**categorizeObjects**](SpaceApi.md#categorizeObjects) | **POST** /folders/{key}/categorize | 
[**checkUserEmails**](SpaceApi.md#checkUserEmails) | **GET** /folders/hotspots/participants/checkEmails | 
[**createSpace**](SpaceApi.md#createSpace) | **POST** /folders | 
[**deleteSpace**](SpaceApi.md#deleteSpace) | **DELETE** /folders/{folderKey} | 
[**deleteSpaces**](SpaceApi.md#deleteSpaces) | **POST** /folders/delete | 
[**getContentsRef**](SpaceApi.md#getContentsRef) | **GET** /folders/contents/ref | 
[**getCorporateSpaces**](SpaceApi.md#getCorporateSpaces) | **GET** /folders/corporate | 
[**getFullPath**](SpaceApi.md#getFullPath) | **GET** /folders/{key}/getpath | 
[**getItems**](SpaceApi.md#getItems) | **GET** /folders/{folderKey}/contents/{contentType} | 
[**getMarks**](SpaceApi.md#getMarks) | **GET** /folders/type/{itemKey} | 
[**getParents**](SpaceApi.md#getParents) | **GET** /folders/{folderKey}/parents | 
[**getPublicSpace**](SpaceApi.md#getPublicSpace) | **GET** /folders/{folderKey}/public | 
[**getSharedSpaces**](SpaceApi.md#getSharedSpaces) | **GET** /space/{key}/sharedspaces | 
[**getSpaces**](SpaceApi.md#getSpaces) | **GET** /folders/{tag}/spaces | 
[**getSubspaces**](SpaceApi.md#getSubspaces) | **GET** /folders/{key}/folders | 
[**getUserRolesInSpace**](SpaceApi.md#getUserRolesInSpace) | **GET** /folders/{key}/checkUserKeys | 
[**leaveSpace**](SpaceApi.md#leaveSpace) | **PUT** /folders/{key}/leave | 
[**listAssociationItem**](SpaceApi.md#listAssociationItem) | **GET** /association/{key}/{association} | 
[**markItems**](SpaceApi.md#markItems) | **POST** /folders/mark/{markType} | 
[**moveItems**](SpaceApi.md#moveItems) | **POST** /folders/{fromFolderKey}/contents/move | 
[**multishare**](SpaceApi.md#multishare) | **POST** /folders/multishare | 
[**removeItems**](SpaceApi.md#removeItems) | **POST** /folders/{folderKey}/contents/remove | 
[**removeParticipants**](SpaceApi.md#removeParticipants) | **PUT** /folders/{key}/participants/remove | 
[**share**](SpaceApi.md#share) | **POST** /space/share | 
[**shareObject**](SpaceApi.md#shareObject) | **POST** /folders/{key}/sharetouserspace | 
[**unmarkAllItems**](SpaceApi.md#unmarkAllItems) | **POST** /folders/removeAll/{markType} | 
[**unmarkItems**](SpaceApi.md#unmarkItems) | **POST** /folders/unmark/{markType} | 
[**unshare**](SpaceApi.md#unshare) | **POST** /space/unshare | 
[**unshareObject**](SpaceApi.md#unshareObject) | **POST** /folders/{key}/unshareitem | 


<a name="addContacts"></a>
# **addContacts**
> AddContactsResult addContacts(contactType, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var contactType = "contactType_example"; // {String} Contact type. Options are: connected, trusted, engaged, acquainted

var input = new VmosoApi.AddContactsInput(); // {AddContactsInput} Users to add.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **contactType** | **String**| Contact type. Options are: connected, trusted, engaged, acquainted | 
 **input** | [**AddContactsInput**](AddContactsInput.md)| Users to add. | 

### Return type

[**AddContactsResult**](AddContactsResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="addItems"></a>
# **addItems**
> AddItemsResult addItems(folderKey, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var folderKey = "folderKey_example"; // {String} 

var input = new VmosoApi.AddItemsInput(); // {AddItemsInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **folderKey** | **String**|  | 
 **input** | [**AddItemsInput**](AddItemsInput.md)|  | 

### Return type

[**AddItemsResult**](AddItemsResult.md)

### Authorization

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

### HTTP reuqest headers

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

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





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var key = "key_example"; // {String} 

var input = new VmosoApi.AddParticipantsInput(); // {AddParticipantsInput} 


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

### Parameters

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

### Return type

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

### Authorization

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

### HTTP reuqest headers

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

<a name="categorizeObjects"></a>
# **categorizeObjects**
> CategorizeObjectsResult categorizeObjects(key, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var key = "key_example"; // {String} 

var input = new VmosoApi.CategorizeObjectsInput(); // {CategorizeObjectsInput} 


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

### Parameters

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

### Return type

[**CategorizeObjectsResult**](CategorizeObjectsResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="checkUserEmails"></a>
# **checkUserEmails**
> CheckUserEmailsResult checkUserEmails(key, email)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var key = "key_example"; // {String} 

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);
  }
};
api.checkUserEmails(key, email, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **email** | [**[String]**](String.md)|  | 

### Return type

[**CheckUserEmailsResult**](CheckUserEmailsResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="createSpace"></a>
# **createSpace**
> CreateSpaceResult createSpace(input)



Use this API to create a space.

### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var input = new VmosoApi.CreateSpaceInput(); // {CreateSpaceInput} Space definition.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**CreateSpaceInput**](CreateSpaceInput.md)| Space definition. | 

### Return type

[**CreateSpaceResult**](CreateSpaceResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="deleteSpace"></a>
# **deleteSpace**
> DeleteSpaceResult deleteSpace(folderKey, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var folderKey = "folderKey_example"; // {String} 

var input = new VmosoApi.DeleteSpaceInput(); // {DeleteSpaceInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **folderKey** | **String**|  | 
 **input** | [**DeleteSpaceInput**](DeleteSpaceInput.md)|  | 

### Return type

[**DeleteSpaceResult**](DeleteSpaceResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="deleteSpaces"></a>
# **deleteSpaces**
> DeleteSpacesResult deleteSpaces(input)



Use this API to delete a space.

### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var input = new VmosoApi.DeleteSpacesInput(); // {DeleteSpacesInput} Spaces to delete.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**DeleteSpacesInput**](DeleteSpacesInput.md)| Spaces to delete. | 

### Return type

[**DeleteSpacesResult**](DeleteSpacesResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getContentsRef"></a>
# **getContentsRef**
> GetContentsRefResult getContentsRef(contentKeys, opts)



Get the spaces where content is referenced.

### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var contentKeys = ["contentKeys_example"]; // {[String]} Content to find.

var opts = { 
  'spaceKey': "spaceKey_example" // {String} Space key.
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **contentKeys** | [**[String]**](String.md)| Content to find. | 
 **spaceKey** | **String**| Space key. | [optional] 

### Return type

[**GetContentsRefResult**](GetContentsRefResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getCorporateSpaces"></a>
# **getCorporateSpaces**
> GetCorporateSpacesResult getCorporateSpaces



Use this API to get the corporate spaces.

### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

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

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

### Return type

[**GetCorporateSpacesResult**](GetCorporateSpacesResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getFullPath"></a>
# **getFullPath**
> GetFullPathResult getFullPath(key)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

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);
  }
};
api.getFullPath(key, callback);
```

### Parameters

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

### Return type

[**GetFullPathResult**](GetFullPathResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getItems"></a>
# **getItems**
> GetItemsResult getItems(folderKey, contentType, opts)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var folderKey = "folderKey_example"; // {String} 

var contentType = "contentType_example"; // {String} 

var opts = { 
  'spaceId': "spaceId_example", // {String} 
  'option': "option_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);
  }
};
api.getItems(folderKey, contentType, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **folderKey** | **String**|  | 
 **contentType** | **String**|  | 
 **spaceId** | **String**|  | [optional] 
 **option** | **String**|  | [optional] 
 **pg** | **String**|  | [optional] 

### Return type

[**GetItemsResult**](GetItemsResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getMarks"></a>
# **getMarks**
> GetMarksResult getMarks(itemKey, opts)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var itemKey = "itemKey_example"; // {String} 

var opts = { 
  'spaceId': "spaceId_example" // {String} 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **itemKey** | **String**|  | 
 **spaceId** | **String**|  | [optional] 

### Return type

[**GetMarksResult**](GetMarksResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getParents"></a>
# **getParents**
> GetParentsResult getParents(folderKey, opts)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var folderKey = "folderKey_example"; // {String} 

var opts = { 
  'spaceId': "spaceId_example" // {String} 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **folderKey** | **String**|  | 
 **spaceId** | **String**|  | [optional] 

### Return type

[**GetParentsResult**](GetParentsResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getPublicSpace"></a>
# **getPublicSpace**
> GetPublicSpaceResult getPublicSpace(folderKey, opts)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var folderKey = "folderKey_example"; // {String} 

var opts = { 
  'spaceId': "spaceId_example" // {String} 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **folderKey** | **String**|  | 
 **spaceId** | **String**|  | [optional] 

### Return type

[**GetPublicSpaceResult**](GetPublicSpaceResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getSharedSpaces"></a>
# **getSharedSpaces**
> GetSharedSpacesResult getSharedSpaces(key, opts)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var key = "key_example"; // {String} 

var opts = { 
  'options': "options_example" // {String} 
};

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

### Parameters

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

### Return type

[**GetSharedSpacesResult**](GetSharedSpacesResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getSpaces"></a>
# **getSpaces**
> GetSpacesResult getSpaces(tag, opts)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var tag = "tag_example"; // {String} 

var opts = { 
  'keys': ["keys_example"], // {[String]} 
  'format': "format_example" // {String} 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tag** | **String**|  | 
 **keys** | [**[String]**](String.md)|  | [optional] 
 **format** | **String**|  | [optional] 

### Return type

[**GetSpacesResult**](GetSpacesResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getSubspaces"></a>
# **getSubspaces**
> GetSubspacesResult getSubspaces(key, pg, opts)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var key = "key_example"; // {String} 

var pg = "pg_example"; // {String} 

var opts = { 
  'spaceId': "spaceId_example", // {String} 
  'options': "options_example", // {String} 
  'format': "format_example", // {String} 
  'mode': "mode_example" // {String} 
};

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

### Parameters

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

### Return type

[**GetSubspacesResult**](GetSubspacesResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getUserRolesInSpace"></a>
# **getUserRolesInSpace**
> GetUserRolesInSpaceResult getUserRolesInSpace(key, opts)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

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);
  }
};
api.getUserRolesInSpace(key, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**|  | 
 **userKeys** | [**[String]**](String.md)|  | [optional] 

### Return type

[**GetUserRolesInSpaceResult**](GetUserRolesInSpaceResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="leaveSpace"></a>
# **leaveSpace**
> LeaveSpaceResult leaveSpace(key)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

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);
  }
};
api.leaveSpace(key, callback);
```

### Parameters

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

### Return type

[**LeaveSpaceResult**](LeaveSpaceResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="listAssociationItem"></a>
# **listAssociationItem**
> ListAssociationItemResult listAssociationItem(key, association, opts)



List associated items to an space

### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var key = "key_example"; // {String} ID of item.

var association = "association_example"; // {String} Possible values are: all, shared, sharedcontact, sharedspace, or attachedToPost

var opts = { 
  'options': "options_example" // {String} Options for search.
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**| ID of item. | 
 **association** | **String**| Possible values are: all, shared, sharedcontact, sharedspace, or attachedToPost | 
 **options** | **String**| Options for search. | [optional] 

### Return type

[**ListAssociationItemResult**](ListAssociationItemResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="markItems"></a>
# **markItems**
> MarkItemsResult markItems(markType, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var markType = "markType_example"; // {String} 

var input = new VmosoApi.MarkItemsInput(); // {MarkItemsInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **markType** | **String**|  | 
 **input** | [**MarkItemsInput**](MarkItemsInput.md)|  | 

### Return type

[**MarkItemsResult**](MarkItemsResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="moveItems"></a>
# **moveItems**
> MoveItemsResult moveItems(fromFolderKey, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var fromFolderKey = "fromFolderKey_example"; // {String} 

var input = new VmosoApi.MoveItemsInput(); // {MoveItemsInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **fromFolderKey** | **String**|  | 
 **input** | [**MoveItemsInput**](MoveItemsInput.md)|  | 

### Return type

[**MoveItemsResult**](MoveItemsResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="multishare"></a>
# **multishare**
> MultishareResult multishare(input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var input = new VmosoApi.MultishareInput(); // {MultishareInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**MultishareInput**](MultishareInput.md)|  | 

### Return type

[**MultishareResult**](MultishareResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="removeItems"></a>
# **removeItems**
> RemoveItemsResult removeItems(folderKey, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var folderKey = "folderKey_example"; // {String} 

var input = new VmosoApi.RemoveItemsInput(); // {RemoveItemsInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **folderKey** | **String**|  | 
 **input** | [**RemoveItemsInput**](RemoveItemsInput.md)|  | 

### Return type

[**RemoveItemsResult**](RemoveItemsResult.md)

### Authorization

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

### HTTP reuqest headers

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

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





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var key = "key_example"; // {String} 

var input = new VmosoApi.RemoveParticipantsInput(); // {RemoveParticipantsInput} 


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

### Parameters

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

### Return type

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

### Authorization

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

### HTTP reuqest headers

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

<a name="share"></a>
# **share**
> ShareResult share(input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var input = new VmosoApi.ShareInput(); // {ShareInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**ShareInput**](ShareInput.md)|  | 

### Return type

[**ShareResult**](ShareResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="shareObject"></a>
# **shareObject**
> ShareObjectResult shareObject(key, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var key = "key_example"; // {String} 

var input = new VmosoApi.ShareObjectInput(); // {ShareObjectInput} 


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

### Parameters

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

### Return type

[**ShareObjectResult**](ShareObjectResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="unmarkAllItems"></a>
# **unmarkAllItems**
> UnmarkAllItemsResult unmarkAllItems(markType, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var markType = "markType_example"; // {String} 

var input = new VmosoApi.UnmarkAllItemsInput(); // {UnmarkAllItemsInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **markType** | **String**|  | 
 **input** | [**UnmarkAllItemsInput**](UnmarkAllItemsInput.md)|  | 

### Return type

[**UnmarkAllItemsResult**](UnmarkAllItemsResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="unmarkItems"></a>
# **unmarkItems**
> UnmarkItemsResult unmarkItems(markType, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var markType = "markType_example"; // {String} 

var input = new VmosoApi.UnmarkItemsInput(); // {UnmarkItemsInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **markType** | **String**|  | 
 **input** | [**UnmarkItemsInput**](UnmarkItemsInput.md)|  | 

### Return type

[**UnmarkItemsResult**](UnmarkItemsResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="unshare"></a>
# **unshare**
> UnshareResult unshare(input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var input = new VmosoApi.UnshareInput(); // {UnshareInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**UnshareInput**](UnshareInput.md)|  | 

### Return type

[**UnshareResult**](UnshareResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="unshareObject"></a>
# **unshareObject**
> UnshareObjectResult unshareObject(key, input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.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['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SpaceApi()

var key = "key_example"; // {String} 

var input = new VmosoApi.UnshareObjectInput(); // {UnshareObjectInput} 


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

### Parameters

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

### Return type

[**UnshareObjectResult**](UnshareObjectResult.md)

### Authorization

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

### HTTP reuqest headers

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

