# ps.module.MusicOnHoldApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionTeamTeamIdMohIdDelete**](MusicOnHoldApi.md#apiVersionTeamTeamIdMohIdDelete) | **DELETE** /api/{version}/team/{TeamId}/moh/{id} | [Team] Delete music on hold
[**apiVersionTeamTeamIdMohIdPut**](MusicOnHoldApi.md#apiVersionTeamTeamIdMohIdPut) | **PUT** /api/{version}/team/{TeamId}/moh/{id} | [Team] Select music on hold
[**apiVersionTeamTeamIdMohPost**](MusicOnHoldApi.md#apiVersionTeamTeamIdMohPost) | **POST** /api/{version}/team/{TeamId}/moh | [Team] Add new music on hold
[**apiVersionTeammateTeammateIdMohIdDelete**](MusicOnHoldApi.md#apiVersionTeammateTeammateIdMohIdDelete) | **DELETE** /api/{version}/teammate/{teammateId}/moh/{id} | [Teammate] Delete music on hold
[**apiVersionTeammateTeammateIdMohIdPut**](MusicOnHoldApi.md#apiVersionTeammateTeammateIdMohIdPut) | **PUT** /api/{version}/teammate/{teammateId}/moh/{id} | [Teammate] Select music on hold
[**apiVersionTeammateTeammateIdMohPost**](MusicOnHoldApi.md#apiVersionTeammateTeammateIdMohPost) | **POST** /api/{version}/teammate/{teammateId}/moh | [Teammate] Add new music on hold
[**apiVersionTenantTenantIdMohIdDelete**](MusicOnHoldApi.md#apiVersionTenantTenantIdMohIdDelete) | **DELETE** /api/{version}/tenant/{tenantId}/moh/{id} | [Tenant] Delete music on hold
[**apiVersionTenantTenantIdMohIdPut**](MusicOnHoldApi.md#apiVersionTenantTenantIdMohIdPut) | **PUT** /api/{version}/tenant/{tenantId}/moh/{id} | [Tenant] Select music on hold
[**apiVersionTenantTenantIdMohPost**](MusicOnHoldApi.md#apiVersionTenantTenantIdMohPost) | **POST** /api/{version}/tenant/{tenantId}/moh | [Tenant] Add new music on hold

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

[Team] Delete music on hold

### 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.MusicOnHoldApi();
let teamId = "teamId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teamId** | **String**|  | 
 **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="apiVersionTeamTeamIdMohIdPut"></a>
# **apiVersionTeamTeamIdMohIdPut**
> apiVersionTeamTeamIdMohIdPut(teamId, id, version)

[Team] Select music on hold

### 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.MusicOnHoldApi();
let teamId = "teamId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teamId** | **String**|  | 
 **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="apiVersionTeamTeamIdMohPost"></a>
# **apiVersionTeamTeamIdMohPost**
> apiVersionTeamTeamIdMohPost(teamIdversion)

[Team] Add new music on hold

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teamId** | **String**|  | 
 **version** | **String**|  | 
 **file** | **Blob**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: Not defined

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

[Teammate] Delete music on hold

### 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.MusicOnHoldApi();
let teammateId = "teammateId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **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="apiVersionTeammateTeammateIdMohIdPut"></a>
# **apiVersionTeammateTeammateIdMohIdPut**
> apiVersionTeammateTeammateIdMohIdPut(teammateId, id, version)

[Teammate] Select music on hold

### 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.MusicOnHoldApi();
let teammateId = "teammateId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **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="apiVersionTeammateTeammateIdMohPost"></a>
# **apiVersionTeammateTeammateIdMohPost**
> apiVersionTeammateTeammateIdMohPost(teammateIdversion)

[Teammate] Add new music on hold

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **version** | **String**|  | 
 **file** | **Blob**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: Not defined

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

[Tenant] Delete music on hold

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **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="apiVersionTenantTenantIdMohIdPut"></a>
# **apiVersionTenantTenantIdMohIdPut**
> apiVersionTenantTenantIdMohIdPut(tenantId, id, version)

[Tenant] Select music on hold

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

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

### Parameters

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

[Tenant] Add new music on hold

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **version** | **String**|  | 
 **file** | **Blob**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: Not defined

