# ps.module.PbxApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionUserPbxDelete**](PbxApi.md#apiVersionUserPbxDelete) | **DELETE** /api/{version}/user/pbx |  (Auth policies: AdminAndCsrAdminOnlyPolicy)
[**apiVersionUserPbxGet**](PbxApi.md#apiVersionUserPbxGet) | **GET** /api/{version}/user/pbx |  (Auth policies: AdminAndCsrAdminOnlyPolicy)
[**apiVersionUserPbxPost**](PbxApi.md#apiVersionUserPbxPost) | **POST** /api/{version}/user/pbx |  (Auth policies: AdminAndCsrAdminOnlyPolicy)
[**apiVersionUserPbxPut**](PbxApi.md#apiVersionUserPbxPut) | **PUT** /api/{version}/user/pbx |  (Auth policies: AdminAndCsrAdminOnlyPolicy)

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

 (Auth policies: AdminAndCsrAdminOnlyPolicy)

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

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

 (Auth policies: AdminAndCsrAdminOnlyPolicy)

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

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

 (Auth policies: AdminAndCsrAdminOnlyPolicy)

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

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

 (Auth policies: AdminAndCsrAdminOnlyPolicy)

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

apiInstance.apiVersionUserPbxPut(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

