# EventsMediaTranslationsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteEventMediaItemTranslation**](#deleteeventmediaitemtranslation) | **DELETE** /events/{eventId}/media/{mediaItemId}/translations/{locale} | Delete an event media item\&#39;s translation|
|[**getEventMediaItemTranslation**](#geteventmediaitemtranslation) | **GET** /events/{eventId}/media/{mediaId}/translations/{locale} | Get a media item\&#39;s translation for a locale|
|[**getEventMediaItemTranslations**](#geteventmediaitemtranslations) | **GET** /events/{eventId}/media/{mediaId}/translations | List a media item\&#39;s translations|
|[**updateEventMediaItemTranslation**](#updateeventmediaitemtranslation) | **PUT** /events/{eventId}/media/{mediaItemId}/translations/{locale} | Create or update an event media item\&#39;s translation|

# **deleteEventMediaItemTranslation**
> SyncAccounts200Response deleteEventMediaItemTranslation()

Removes the translated content for a single locale from an event media item, and requires read and update permission on both events and storage.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let mediaItemId: string; //The mediaItem identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

const { status, data } = await apiInstance.deleteEventMediaItemTranslation(
    eventId,
    mediaItemId,
    locale
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **mediaItemId** | [**string**] | The mediaItem identifier | defaults to undefined|
| **locale** | [**string**] | The locale identifier | defaults to undefined|


### Return type

**SyncAccounts200Response**

### 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)

# **getEventMediaItemTranslation**
> GetEventMediaItemTranslation200Response getEventMediaItemTranslation()

Returns the translated fields for a specific event media item in the given locale, or null if no translation exists for that locale; requires read access to events and storage.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let mediaId: string; //The media identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

const { status, data } = await apiInstance.getEventMediaItemTranslation(
    eventId,
    mediaId,
    locale
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **mediaId** | [**string**] | The media identifier | defaults to undefined|
| **locale** | [**string**] | The locale identifier | defaults to undefined|


### Return type

**GetEventMediaItemTranslation200Response**

### 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)

# **getEventMediaItemTranslations**
> GetEventMediaItemTranslations200Response getEventMediaItemTranslations()

Returns a paginated list of locale translations available for a specific event media item, with optional search and sort; requires read access to events and storage.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let mediaId: string; //The media identifier (default to undefined)
let page: number; //Page number (optional) (default to 1)
let pageSize: number; //Number of items per page (optional) (default to 25)
let orderBy: string; //Field to order by (optional) (default to undefined)
let search: string; //Search query (optional) (default to undefined)

const { status, data } = await apiInstance.getEventMediaItemTranslations(
    eventId,
    mediaId,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **mediaId** | [**string**] | The media identifier | defaults to undefined|
| **page** | [**number**] | Page number | (optional) defaults to 1|
| **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
| **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
| **search** | [**string**] | Search query | (optional) defaults to undefined|


### Return type

**GetEventMediaItemTranslations200Response**

### 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)

# **updateEventMediaItemTranslation**
> UpdateEventMediaItemTranslation200Response updateEventMediaItemTranslation(eventMediaItemTranslationUpdateInputs)

Creates or updates the translated content (such as title, alt text, or description) for a single locale on an event media item, and requires read and update permission on both events and storage.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let mediaItemId: string; //The mediaItem identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)
let eventMediaItemTranslationUpdateInputs: EventMediaItemTranslationUpdateInputs; //

const { status, data } = await apiInstance.updateEventMediaItemTranslation(
    eventId,
    mediaItemId,
    locale,
    eventMediaItemTranslationUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventMediaItemTranslationUpdateInputs** | **EventMediaItemTranslationUpdateInputs**|  | |
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **mediaItemId** | [**string**] | The mediaItem identifier | defaults to undefined|
| **locale** | [**string**] | The locale identifier | defaults to undefined|


### Return type

**UpdateEventMediaItemTranslation200Response**

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

