# ps.module.VoicemailGreetingApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionTeamTeamIdVmGreetingIdDelete**](VoicemailGreetingApi.md#apiVersionTeamTeamIdVmGreetingIdDelete) | **DELETE** /api/{version}/team/{teamId}/vm/greeting/{id} | [Team] Delete voicemail greeting
[**apiVersionTeamTeamIdVmGreetingIdPut**](VoicemailGreetingApi.md#apiVersionTeamTeamIdVmGreetingIdPut) | **PUT** /api/{version}/team/{teamId}/vm/greeting/{id} | [Team] Select voicemail greeting
[**apiVersionTeamTeamIdVmGreetingPost**](VoicemailGreetingApi.md#apiVersionTeamTeamIdVmGreetingPost) | **POST** /api/{version}/team/{teamId}/vm/greeting | [Team] Add new voicemail greeting
[**apiVersionTeamTeamIdVmTextgreetingPost**](VoicemailGreetingApi.md#apiVersionTeamTeamIdVmTextgreetingPost) | **POST** /api/{version}/team/{teamId}/vm/textgreeting | [Team] Convert Text to Speech and add new voicemail greeting
[**apiVersionTeammateTeammateIdVmGreetingIdDelete**](VoicemailGreetingApi.md#apiVersionTeammateTeammateIdVmGreetingIdDelete) | **DELETE** /api/{version}/teammate/{teammateId}/vm/greeting/{id} | [Teammate] Delete voicemail greeting
[**apiVersionTeammateTeammateIdVmGreetingIdPut**](VoicemailGreetingApi.md#apiVersionTeammateTeammateIdVmGreetingIdPut) | **PUT** /api/{version}/teammate/{teammateId}/vm/greeting/{id} | [Teammate] Select voicemail greeting
[**apiVersionTeammateTeammateIdVmGreetingPost**](VoicemailGreetingApi.md#apiVersionTeammateTeammateIdVmGreetingPost) | **POST** /api/{version}/teammate/{teammateId}/vm/greeting | [Teammate] Add new voicemail greeting
[**apiVersionTeammateTeammateIdVmTextgreetingPost**](VoicemailGreetingApi.md#apiVersionTeammateTeammateIdVmTextgreetingPost) | **POST** /api/{version}/teammate/{teammateId}/vm/textgreeting | [Teammate] Convert Text to Speech and add new voicemail greeting
[**apiVersionTenantTenantIdGreetingIdPut**](VoicemailGreetingApi.md#apiVersionTenantTenantIdGreetingIdPut) | **PUT** /api/{version}/tenant/{tenantId}/greeting/{id} | [Tenant] Select default voicemail greeting

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

[Team] Delete voicemail greeting

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

apiInstance.apiVersionTeamTeamIdVmGreetingIdDelete(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="apiVersionTeamTeamIdVmGreetingIdPut"></a>
# **apiVersionTeamTeamIdVmGreetingIdPut**
> apiVersionTeamTeamIdVmGreetingIdPut(teamId, id, version)

[Team] Select voicemail greeting

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

apiInstance.apiVersionTeamTeamIdVmGreetingIdPut(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="apiVersionTeamTeamIdVmGreetingPost"></a>
# **apiVersionTeamTeamIdVmGreetingPost**
> apiVersionTeamTeamIdVmGreetingPost(teamIdversion)

[Team] Add new voicemail greeting

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

apiInstance.apiVersionTeamTeamIdVmGreetingPost(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="apiVersionTeamTeamIdVmTextgreetingPost"></a>
# **apiVersionTeamTeamIdVmTextgreetingPost**
> apiVersionTeamTeamIdVmTextgreetingPost(teamIdversion)

[Team] Convert Text to Speech and add new voicemail greeting

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teamId** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreVoicemailGreetingsTeamsCreateTeamVoicemailTextGreetingQuery**](PhoneSpeakServiceCoreVoicemailGreetingsTeamsCreateTeamVoicemailTextGreetingQuery.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="apiVersionTeammateTeammateIdVmGreetingIdDelete"></a>
# **apiVersionTeammateTeammateIdVmGreetingIdDelete**
> apiVersionTeammateTeammateIdVmGreetingIdDelete(teammateId, id, version)

[Teammate] Delete voicemail greeting

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

apiInstance.apiVersionTeammateTeammateIdVmGreetingIdDelete(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="apiVersionTeammateTeammateIdVmGreetingIdPut"></a>
# **apiVersionTeammateTeammateIdVmGreetingIdPut**
> apiVersionTeammateTeammateIdVmGreetingIdPut(teammateId, id, version)

[Teammate] Select voicemail greeting

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

apiInstance.apiVersionTeammateTeammateIdVmGreetingIdPut(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="apiVersionTeammateTeammateIdVmGreetingPost"></a>
# **apiVersionTeammateTeammateIdVmGreetingPost**
> apiVersionTeammateTeammateIdVmGreetingPost(teammateIdversion)

[Teammate] Add new voicemail greeting

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

apiInstance.apiVersionTeammateTeammateIdVmGreetingPost(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="apiVersionTeammateTeammateIdVmTextgreetingPost"></a>
# **apiVersionTeammateTeammateIdVmTextgreetingPost**
> apiVersionTeammateTeammateIdVmTextgreetingPost(teammateIdversion)

[Teammate] Convert Text to Speech and add new voicemail greeting

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreVoicemailGreetingsTeammatesCreateTeammateVoicemailTextGreetingQuery**](PhoneSpeakServiceCoreVoicemailGreetingsTeammatesCreateTeammateVoicemailTextGreetingQuery.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="apiVersionTenantTenantIdGreetingIdPut"></a>
# **apiVersionTenantTenantIdGreetingIdPut**
> apiVersionTenantTenantIdGreetingIdPut(tenantId, id, version)

[Tenant] Select default voicemail greeting

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

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

