# ThreadsMessagesVideosApi

All URIs are relative to *https://admin-api.connected.dev*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**createThreadMessageVideo**](#createthreadmessagevideo) | **POST** /threads/{threadId}/messages/{messageId}/videos/{videoId} | Attach a video to a thread message|
|[**deleteThreadMessageVideo**](#deletethreadmessagevideo) | **DELETE** /threads/{threadId}/messages/{messageId}/videos/{videoId} | Detach a video from a thread message|
|[**getThreadMessageVideos**](#getthreadmessagevideos) | **GET** /threads/{threadId}/messages/{messageId}/videos | List a thread message\&#39;s attached videos|

# **createThreadMessageVideo**
> CreateThreadMessage200Response createThreadMessageVideo()

Connects an existing uploaded video to a message in a thread; requires the \"read\" and \"update\" permissions on both threads and storage.

### Example

```typescript
import {
    ThreadsMessagesVideosApi,
    Configuration
} from '@connectedxm/admin-sdk';

const configuration = new Configuration();
const apiInstance = new ThreadsMessagesVideosApi(configuration);

let threadId: string; //The thread identifier (default to undefined)
let messageId: string; //The message identifier (default to undefined)
let videoId: string; //The video identifier (default to undefined)

const { status, data } = await apiInstance.createThreadMessageVideo(
    threadId,
    messageId,
    videoId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **threadId** | [**string**] | The thread identifier | defaults to undefined|
| **messageId** | [**string**] | The message identifier | defaults to undefined|
| **videoId** | [**string**] | The video identifier | defaults to undefined|


### Return type

**CreateThreadMessage200Response**

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Successful response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **deleteThreadMessageVideo**
> CreateAccountInvitations200Response deleteThreadMessageVideo()

Disconnects a previously attached video from a message in a thread without deleting the underlying video file; requires the \"read\" and \"update\" permissions on both threads and storage.

### Example

```typescript
import {
    ThreadsMessagesVideosApi,
    Configuration
} from '@connectedxm/admin-sdk';

const configuration = new Configuration();
const apiInstance = new ThreadsMessagesVideosApi(configuration);

let threadId: string; //The thread identifier (default to undefined)
let messageId: string; //The message identifier (default to undefined)
let videoId: string; //The video identifier (default to undefined)

const { status, data } = await apiInstance.deleteThreadMessageVideo(
    threadId,
    messageId,
    videoId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **threadId** | [**string**] | The thread identifier | defaults to undefined|
| **messageId** | [**string**] | The message identifier | defaults to undefined|
| **videoId** | [**string**] | The video identifier | defaults to undefined|


### Return type

**CreateAccountInvitations200Response**

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Successful response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getThreadMessageVideos**
> GetThreadMessageVideos200Response getThreadMessageVideos()

Returns a paginated list of videos attached to the given thread message, supporting search and ordering; requires read permission on threads and storage.

### Example

```typescript
import {
    ThreadsMessagesVideosApi,
    Configuration
} from '@connectedxm/admin-sdk';

const configuration = new Configuration();
const apiInstance = new ThreadsMessagesVideosApi(configuration);

let threadId: string; //The thread identifier (default to undefined)
let messageId: string; //The message identifier (default to undefined)

const { status, data } = await apiInstance.getThreadMessageVideos(
    threadId,
    messageId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **threadId** | [**string**] | The thread identifier | defaults to undefined|
| **messageId** | [**string**] | The message identifier | defaults to undefined|


### Return type

**GetThreadMessageVideos200Response**

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Successful response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

