# ps.module.CallRestrictionApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionTenantTenantIdCallrestrictionGet**](CallRestrictionApi.md#apiVersionTenantTenantIdCallrestrictionGet) | **GET** /api/{version}/tenant/{tenantId}/callrestriction | [Tenant] Get Tenant Call Restriction
[**apiVersionTenantTenantIdCallrestrictionPut**](CallRestrictionApi.md#apiVersionTenantTenantIdCallrestrictionPut) | **PUT** /api/{version}/tenant/{tenantId}/callrestriction | [Tenant] Update Tenant Call Restriction

<a name="apiVersionTenantTenantIdCallrestrictionGet"></a>
# **apiVersionTenantTenantIdCallrestrictionGet**
> apiVersionTenantTenantIdCallrestrictionGet(tenantId, version)

[Tenant] Get Tenant Call Restriction

### 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.CallRestrictionApi();
let tenantId = "tenantId_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **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="apiVersionTenantTenantIdCallrestrictionPut"></a>
# **apiVersionTenantTenantIdCallrestrictionPut**
> apiVersionTenantTenantIdCallrestrictionPut(tenantIdversion)

[Tenant] Update Tenant Call Restriction

### 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.CallRestrictionApi();
let tenantId = "tenantId_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreCallRestrictionsTenantsUpdateTenantCallRestrictionQuery**](PhoneSpeakServiceCoreCallRestrictionsTenantsUpdateTenantCallRestrictionQuery.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
 - **Accept**: Not defined

