# ps.module.MessageApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionMessageConversationIdIdGet**](MessageApi.md#apiVersionMessageConversationIdIdGet) | **GET** /api/{version}/message/{conversationId}/{id} | Get message media
[**apiVersionMessageLogExportGet**](MessageApi.md#apiVersionMessageLogExportGet) | **GET** /api/{version}/message/log/export | Export log of Message
[**apiVersionMessageLogGet**](MessageApi.md#apiVersionMessageLogGet) | **GET** /api/{version}/message/log | Returns a log of Message
[**apiVersionMessageOwnerIdCountGet**](MessageApi.md#apiVersionMessageOwnerIdCountGet) | **GET** /api/{version}/message/{ownerId}/count | Get message count
[**apiVersionOwnerIdConversationAllDelete**](MessageApi.md#apiVersionOwnerIdConversationAllDelete) | **DELETE** /api/{version}/{ownerId}/conversation/all | Delete All Conversation
[**apiVersionOwnerIdConversationConversationIdDelete**](MessageApi.md#apiVersionOwnerIdConversationConversationIdDelete) | **DELETE** /api/{version}/{ownerId}/conversation/{conversationId} | Delete Conversation
[**apiVersionOwnerIdConversationConversationIdGet**](MessageApi.md#apiVersionOwnerIdConversationConversationIdGet) | **GET** /api/{version}/{ownerId}/conversation/{conversationId} | Returns a list of Message
[**apiVersionOwnerIdConversationConversationIdPut**](MessageApi.md#apiVersionOwnerIdConversationConversationIdPut) | **PUT** /api/{version}/{ownerId}/conversation/{conversationId} | Update Conversation Name, Image
[**apiVersionOwnerIdConversationGet**](MessageApi.md#apiVersionOwnerIdConversationGet) | **GET** /api/{version}/{ownerId}/conversation | Returns a list of Conversation
[**apiVersionOwnerIdConversationReadPut**](MessageApi.md#apiVersionOwnerIdConversationReadPut) | **PUT** /api/{version}/{ownerId}/conversation/read | Update message
[**apiVersionOwnerIdMessageIdDelete**](MessageApi.md#apiVersionOwnerIdMessageIdDelete) | **DELETE** /api/{version}/{ownerId}/message/{id} | Delete message
[**apiVersionOwnerIdMessageIdPut**](MessageApi.md#apiVersionOwnerIdMessageIdPut) | **PUT** /api/{version}/{ownerId}/message/{id} | Update message
[**apiVersionOwnerIdMessageIdResendGet**](MessageApi.md#apiVersionOwnerIdMessageIdResendGet) | **GET** /api/{version}/{ownerId}/message/{id}/resend | Resend message
[**apiVersionOwnerIdMessagePost**](MessageApi.md#apiVersionOwnerIdMessagePost) | **POST** /api/{version}/{ownerId}/message | Create new Message

<a name="apiVersionMessageConversationIdIdGet"></a>
# **apiVersionMessageConversationIdIdGet**
> apiVersionMessageConversationIdIdGet(conversationId, id, version)

Get message media

### Example
```javascript
import ps.module from 'phonespeakv2_api';

let apiInstance = new ps.module.MessageApi();
let conversationId = "conversationId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **conversationId** | **String**|  | 
 **id** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionMessageLogExportGet"></a>
# **apiVersionMessageLogExportGet**
> apiVersionMessageLogExportGet(version, opts)

Export log of Message

### 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.MessageApi();
let version = "version_example"; // String | 
let opts = { 
  'type': new ps.module.PhoneSpeakEntitiesEnumsMessageType(), // PhoneSpeakEntitiesEnumsMessageType | 
  'status': new ps.module.PhoneSpeakEntitiesEnumsMessageStatus(), // PhoneSpeakEntitiesEnumsMessageStatus | 
  'tenantStatus': new ps.module.PhoneSpeakEntitiesEnumsTenantStatus(), // PhoneSpeakEntitiesEnumsTenantStatus | 
  'tenantId': "tenantId_example", // String | 
  'sender': "sender_example", // String | 
  'recipient': "recipient_example", // String | 
  'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'search': "search_example" // String | 
};
apiInstance.apiVersionMessageLogExportGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **type** | [**PhoneSpeakEntitiesEnumsMessageType**](.md)|  | [optional] 
 **status** | [**PhoneSpeakEntitiesEnumsMessageStatus**](.md)|  | [optional] 
 **tenantStatus** | [**PhoneSpeakEntitiesEnumsTenantStatus**](.md)|  | [optional] 
 **tenantId** | **String**|  | [optional] 
 **sender** | **String**|  | [optional] 
 **recipient** | **String**|  | [optional] 
 **startDate** | **Date**|  | [optional] 
 **endDate** | **Date**|  | [optional] 
 **search** | **String**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionMessageLogGet"></a>
# **apiVersionMessageLogGet**
> apiVersionMessageLogGet(version, opts)

Returns a log of Message

### 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.MessageApi();
let version = "version_example"; // String | 
let opts = { 
  'type': new ps.module.PhoneSpeakEntitiesEnumsMessageType(), // PhoneSpeakEntitiesEnumsMessageType | 
  'status': new ps.module.PhoneSpeakEntitiesEnumsMessageStatus(), // PhoneSpeakEntitiesEnumsMessageStatus | 
  'tenantStatus': new ps.module.PhoneSpeakEntitiesEnumsTenantStatus(), // PhoneSpeakEntitiesEnumsTenantStatus | 
  'tenantId': "tenantId_example", // String | 
  'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionMessageLogGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **type** | [**PhoneSpeakEntitiesEnumsMessageType**](.md)|  | [optional] 
 **status** | [**PhoneSpeakEntitiesEnumsMessageStatus**](.md)|  | [optional] 
 **tenantStatus** | [**PhoneSpeakEntitiesEnumsTenantStatus**](.md)|  | [optional] 
 **tenantId** | **String**|  | [optional] 
 **startDate** | **Date**|  | [optional] 
 **endDate** | **Date**|  | [optional] 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionMessageOwnerIdCountGet"></a>
# **apiVersionMessageOwnerIdCountGet**
> apiVersionMessageOwnerIdCountGet(ownerId, version)

Get message count

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **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="apiVersionOwnerIdConversationAllDelete"></a>
# **apiVersionOwnerIdConversationAllDelete**
> apiVersionOwnerIdConversationAllDelete(ownerId, version)

Delete All Conversation

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **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="apiVersionOwnerIdConversationConversationIdDelete"></a>
# **apiVersionOwnerIdConversationConversationIdDelete**
> apiVersionOwnerIdConversationConversationIdDelete(ownerId, conversationId, version)

Delete Conversation

### 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.MessageApi();
let ownerId = "ownerId_example"; // String | 
let conversationId = "conversationId_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **String**|  | 
 **conversationId** | **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="apiVersionOwnerIdConversationConversationIdGet"></a>
# **apiVersionOwnerIdConversationConversationIdGet**
> apiVersionOwnerIdConversationConversationIdGet(ownerId, conversationId, version, opts)

Returns a list of Message

### 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.MessageApi();
let ownerId = "ownerId_example"; // String | 
let conversationId = "conversationId_example"; // String | 
let version = "version_example"; // String | 
let opts = { 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionOwnerIdConversationConversationIdGet(ownerId, conversationId, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **String**|  | 
 **conversationId** | **String**|  | 
 **version** | **String**|  | 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionOwnerIdConversationConversationIdPut"></a>
# **apiVersionOwnerIdConversationConversationIdPut**
> apiVersionOwnerIdConversationConversationIdPut(ownerIdconversationIdversion)

Update Conversation Name, Image

### 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.MessageApi();
let ownerId = "ownerId_example"; // String | 
let conversationId = "conversationId_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **String**|  | 
 **conversationId** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreMessagesUpdateConversationQuery**](PhoneSpeakServiceCoreMessagesUpdateConversationQuery.md)| Update message | [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="apiVersionOwnerIdConversationGet"></a>
# **apiVersionOwnerIdConversationGet**
> apiVersionOwnerIdConversationGet(ownerId, version, opts)

Returns a list of Conversation

### 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.MessageApi();
let ownerId = "ownerId_example"; // String | 
let version = "version_example"; // String | 
let opts = { 
  'lastId': "lastId_example", // String | 
  'isByLastId': true, // Boolean | 
  'lastActionDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'isByLastActionDate': true, // Boolean | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionOwnerIdConversationGet(ownerId, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **String**|  | 
 **version** | **String**|  | 
 **lastId** | **String**|  | [optional] 
 **isByLastId** | **Boolean**|  | [optional] 
 **lastActionDate** | **Date**|  | [optional] 
 **isByLastActionDate** | **Boolean**|  | [optional] 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionOwnerIdConversationReadPut"></a>
# **apiVersionOwnerIdConversationReadPut**
> apiVersionOwnerIdConversationReadPut(ownerIdversion)

Update message

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

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreMessagesUpdateReadMessageQuery**](PhoneSpeakServiceCoreMessagesUpdateReadMessageQuery.md)| Update message | [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="apiVersionOwnerIdMessageIdDelete"></a>
# **apiVersionOwnerIdMessageIdDelete**
> apiVersionOwnerIdMessageIdDelete(ownerId, id, version)

Delete message

### 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.MessageApi();
let ownerId = "ownerId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **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="apiVersionOwnerIdMessageIdPut"></a>
# **apiVersionOwnerIdMessageIdPut**
> apiVersionOwnerIdMessageIdPut(ownerIdidversion)

Update message

### 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.MessageApi();
let ownerId = "ownerId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **String**|  | 
 **id** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreMessagesUpdateMessageQuery**](PhoneSpeakServiceCoreMessagesUpdateMessageQuery.md)| Update message | [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="apiVersionOwnerIdMessageIdResendGet"></a>
# **apiVersionOwnerIdMessageIdResendGet**
> apiVersionOwnerIdMessageIdResendGet(ownerId, id, version)

Resend message

### 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.MessageApi();
let ownerId = "ownerId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **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="apiVersionOwnerIdMessagePost"></a>
# **apiVersionOwnerIdMessagePost**
> apiVersionOwnerIdMessagePost(ownerIdversion)

Create new Message

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

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

### Parameters

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

