# ps.module.TenantApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionCsrTenantGet**](TenantApi.md#apiVersionCsrTenantGet) | **GET** /api/{version}/csr/tenant | [CSR] Returns a list of active Tenant
[**apiVersionCsrTenantIdDelete**](TenantApi.md#apiVersionCsrTenantIdDelete) | **DELETE** /api/{version}/csr/tenant/{id} | [CSR] Delete Tenant from database
[**apiVersionCsrTenantIdForcecancelPut**](TenantApi.md#apiVersionCsrTenantIdForcecancelPut) | **PUT** /api/{version}/csr/tenant/{id}/forcecancel | [CSR] FORCE CANCEL Tenant
[**apiVersionCsrTenantIdGet**](TenantApi.md#apiVersionCsrTenantIdGet) | **GET** /api/{version}/csr/tenant/{id} | [CSR] Retrieve existing Tenant
[**apiVersionCsrTenantIdPackagePackageIdPut**](TenantApi.md#apiVersionCsrTenantIdPackagePackageIdPut) | **PUT** /api/{version}/csr/tenant/{id}/package/{packageId} | [CSR] Update Tenant Package
[**apiVersionCsrTenantIdPut**](TenantApi.md#apiVersionCsrTenantIdPut) | **PUT** /api/{version}/csr/tenant/{id} | [CSR] Update Tenant
[**apiVersionCsrTenantIdResetusagePut**](TenantApi.md#apiVersionCsrTenantIdResetusagePut) | **PUT** /api/{version}/csr/tenant/{id}/resetusage | [CSR] Reset Usage Tenant
[**apiVersionCsrTenantIdStatusPut**](TenantApi.md#apiVersionCsrTenantIdStatusPut) | **PUT** /api/{version}/csr/tenant/{id}/status | [CSR] Update Tenant Status
[**apiVersionCsrTenantPost**](TenantApi.md#apiVersionCsrTenantPost) | **POST** /api/{version}/csr/tenant | [CSR] Create Tenant
[**apiVersionCsrTenantReexecutePost**](TenantApi.md#apiVersionCsrTenantReexecutePost) | **POST** /api/{version}/csr/tenant/reexecute |  (Auth policies: CsrStandardPolicy)
[**apiVersionStripeCreatetenantPost**](TenantApi.md#apiVersionStripeCreatetenantPost) | **POST** /api/{version}/stripe/createtenant | [CSR] Create Tenant from Stripe
[**apiVersionTenantGet**](TenantApi.md#apiVersionTenantGet) | **GET** /api/{version}/tenant | [Profile] Get Tenant
[**apiVersionTenantIdInternationalcallPut**](TenantApi.md#apiVersionTenantIdInternationalcallPut) | **PUT** /api/{version}/tenant/{id}/internationalcall | Verify international call
[**apiVersionTenantIdInternationalchargePut**](TenantApi.md#apiVersionTenantIdInternationalchargePut) | **PUT** /api/{version}/tenant/{id}/internationalcharge | Verify international call charges
[**apiVersionTenantIdStatusPut**](TenantApi.md#apiVersionTenantIdStatusPut) | **PUT** /api/{version}/tenant/{id}/status |  (Auth policies: ActiveStandardPolicy)
[**apiVersionTenantIdTrialendPut**](TenantApi.md#apiVersionTenantIdTrialendPut) | **PUT** /api/{version}/tenant/{id}/trialend | End trial
[**apiVersionTenantPut**](TenantApi.md#apiVersionTenantPut) | **PUT** /api/{version}/tenant | [Profile] Update Tenant

<a name="apiVersionCsrTenantGet"></a>
# **apiVersionCsrTenantGet**
> apiVersionCsrTenantGet(version, opts)

[CSR] Returns a list of active Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let version = "version_example"; // String | 
let opts = { 
  'status': new ps.module.PhoneSpeakEntitiesEnumsTenantStatus(), // PhoneSpeakEntitiesEnumsTenantStatus | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionCsrTenantGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **status** | [**PhoneSpeakEntitiesEnumsTenantStatus**](.md)|  | [optional] 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="apiVersionCsrTenantIdDelete"></a>
# **apiVersionCsrTenantIdDelete**
> apiVersionCsrTenantIdDelete(id, version)

[CSR] Delete Tenant from database

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantIdDelete(id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="apiVersionCsrTenantIdForcecancelPut"></a>
# **apiVersionCsrTenantIdForcecancelPut**
> apiVersionCsrTenantIdForcecancelPut(idversion)

[CSR] FORCE CANCEL Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantIdForcecancelPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsCSRForceCancelTenantStatusQuery**](PhoneSpeakServiceCoreTenantsCSRForceCancelTenantStatusQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionCsrTenantIdGet"></a>
# **apiVersionCsrTenantIdGet**
> apiVersionCsrTenantIdGet(id, version)

[CSR] Retrieve existing Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantIdGet(id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="apiVersionCsrTenantIdPackagePackageIdPut"></a>
# **apiVersionCsrTenantIdPackagePackageIdPut**
> apiVersionCsrTenantIdPackagePackageIdPut(id, packageId, version)

[CSR] Update Tenant Package

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let packageId = "packageId_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantIdPackagePackageIdPut(id, packageId, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **packageId** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="apiVersionCsrTenantIdPut"></a>
# **apiVersionCsrTenantIdPut**
> apiVersionCsrTenantIdPut(idversion)

[CSR] Update Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantIdPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsCSRUpdateTenantQuery**](PhoneSpeakServiceCoreTenantsCSRUpdateTenantQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionCsrTenantIdResetusagePut"></a>
# **apiVersionCsrTenantIdResetusagePut**
> apiVersionCsrTenantIdResetusagePut(idversion)

[CSR] Reset Usage Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantIdResetusagePut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsCSRResetUsageTenantQuery**](PhoneSpeakServiceCoreTenantsCSRResetUsageTenantQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionCsrTenantIdStatusPut"></a>
# **apiVersionCsrTenantIdStatusPut**
> apiVersionCsrTenantIdStatusPut(idversion)

[CSR] Update Tenant Status

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantIdStatusPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsCSRUpdateTenantStatusQuery**](PhoneSpeakServiceCoreTenantsCSRUpdateTenantStatusQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionCsrTenantPost"></a>
# **apiVersionCsrTenantPost**
> apiVersionCsrTenantPost(version)

[CSR] Create Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantPost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsCSRCreateTenantQuery**](PhoneSpeakServiceCoreTenantsCSRCreateTenantQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionCsrTenantReexecutePost"></a>
# **apiVersionCsrTenantReexecutePost**
> apiVersionCsrTenantReexecutePost(version)

 (Auth policies: CsrStandardPolicy)

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let version = "version_example"; // String | 

apiInstance.apiVersionCsrTenantReexecutePost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsReExecuteReExecuteRequest**](PhoneSpeakServiceCoreTenantsReExecuteReExecuteRequest.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionStripeCreatetenantPost"></a>
# **apiVersionStripeCreatetenantPost**
> apiVersionStripeCreatetenantPost(version)

[CSR] Create Tenant from Stripe

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let version = "version_example"; // String | 

apiInstance.apiVersionStripeCreatetenantPost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsCSRCreateTenantFromStripeQuery**](PhoneSpeakServiceCoreTenantsCSRCreateTenantFromStripeQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTenantGet"></a>
# **apiVersionTenantGet**
> apiVersionTenantGet(version)

[Profile] Get Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let version = "version_example"; // String | 

apiInstance.apiVersionTenantGet(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

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

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="apiVersionTenantIdInternationalcallPut"></a>
# **apiVersionTenantIdInternationalcallPut**
> apiVersionTenantIdInternationalcallPut(idversion)

Verify international call

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTenantIdInternationalcallPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsInternationalCallsRequestInternationalCallQuery**](PhoneSpeakServiceCoreTenantsInternationalCallsRequestInternationalCallQuery.md)| Verify international call object | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTenantIdInternationalchargePut"></a>
# **apiVersionTenantIdInternationalchargePut**
> apiVersionTenantIdInternationalchargePut(idversion)

Verify international call charges

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTenantIdInternationalchargePut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsInternationalCallsVerifyChargeQuery**](PhoneSpeakServiceCoreTenantsInternationalCallsVerifyChargeQuery.md)| Verify international call charges object | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTenantIdStatusPut"></a>
# **apiVersionTenantIdStatusPut**
> apiVersionTenantIdStatusPut(idversion)

 (Auth policies: ActiveStandardPolicy)

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTenantIdStatusPut(idversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsCSRUpdateTenantStatusQuery**](PhoneSpeakServiceCoreTenantsCSRUpdateTenantStatusQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTenantIdTrialendPut"></a>
# **apiVersionTenantIdTrialendPut**
> apiVersionTenantIdTrialendPut(id, version)

End trial

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let id = "id_example"; // String | TenantId
let version = "version_example"; // String | 

apiInstance.apiVersionTenantIdTrialendPut(id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| TenantId | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="apiVersionTenantPut"></a>
# **apiVersionTenantPut**
> apiVersionTenantPut(version)

[Profile] Update Tenant

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.TenantApi();
let version = "version_example"; // String | 

apiInstance.apiVersionTenantPut(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreTenantsUpdateTenantQuery**](PhoneSpeakServiceCoreTenantsUpdateTenantQuery.md)| Update tenant object | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

