# ps.module.DialPlanApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionSystemDialplanGet**](DialPlanApi.md#apiVersionSystemDialplanGet) | **GET** /api/{version}/system/dialplan | Retrieves the details of an existing System Dial Plan.
[**apiVersionSystemDialplanPost**](DialPlanApi.md#apiVersionSystemDialplanPost) | **POST** /api/{version}/system/dialplan | Create System Dial Plan
[**apiVersionSystemDialplanPut**](DialPlanApi.md#apiVersionSystemDialplanPut) | **PUT** /api/{version}/system/dialplan | Updates the specific System Dial Plan.

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

Retrieves the details of an existing System Dial Plan.

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

apiInstance.apiVersionSystemDialplanGet(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="apiVersionSystemDialplanPost"></a>
# **apiVersionSystemDialplanPost**
> apiVersionSystemDialplanPost(version)

Create System Dial Plan

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreDialPlansCreateDialPlanQuery**](PhoneSpeakServiceCoreDialPlansCreateDialPlanQuery.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

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

Updates the specific System Dial Plan.

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreDialPlansUpdateDialPlanQuery**](PhoneSpeakServiceCoreDialPlansUpdateDialPlanQuery.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

