# EventsSpeakersTranslationsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteEventSpeakerTranslation**](#deleteeventspeakertranslation) | **DELETE** /events/{eventId}/speakers/{speakerId}/translations/{locale} | Delete an event speaker\&#39;s translation|
|[**getEventSpeakerTranslation**](#geteventspeakertranslation) | **GET** /events/{eventId}/speakers/{speakerId}/translations/{locale} | Get a speaker\&#39;s translation for a locale|
|[**getEventSpeakerTranslations**](#geteventspeakertranslations) | **GET** /events/{eventId}/speakers/{speakerId}/translations | List an event speaker\&#39;s translations|
|[**updateEventSpeakerTranslation**](#updateeventspeakertranslation) | **PUT** /events/{eventId}/speakers/{speakerId}/translations/{locale} | Update an event speaker\&#39;s translation|

# **deleteEventSpeakerTranslation**
> SyncAccounts200Response deleteEventSpeakerTranslation()

Deletes the localized translation for the given locale on an event speaker, removing that language\'s translated fields; requires the update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let speakerId: string; //The speaker identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **speakerId** | [**string**] | The speaker 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)

# **getEventSpeakerTranslation**
> GetEventSpeakerTranslation200Response getEventSpeakerTranslation()

Returns the localized translation (name, title, bio, etc.) of the given event speaker for the specified locale, or null if none exists; requires read permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let speakerId: string; //The speaker identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

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

### Parameters

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


### Return type

**GetEventSpeakerTranslation200Response**

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

# **getEventSpeakerTranslations**
> GetEventSpeakerTranslations200Response getEventSpeakerTranslations()

Returns the paginated list of locale translations available for the given event speaker, optionally filtered by a search term; requires read permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let speakerId: string; //The speaker 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.getEventSpeakerTranslations(
    eventId,
    speakerId,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **speakerId** | [**string**] | The speaker 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

**GetEventSpeakerTranslations200Response**

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

# **updateEventSpeakerTranslation**
> SyncAccounts200Response updateEventSpeakerTranslation(eventSpeakerTranslationUpdateInputs)

Creates or updates the localized translation for an event speaker in the given locale, applying the supplied translated fields; requires the update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let speakerId: string; //The speaker identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)
let eventSpeakerTranslationUpdateInputs: EventSpeakerTranslationUpdateInputs; //

const { status, data } = await apiInstance.updateEventSpeakerTranslation(
    eventId,
    speakerId,
    locale,
    eventSpeakerTranslationUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventSpeakerTranslationUpdateInputs** | **EventSpeakerTranslationUpdateInputs**|  | |
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **speakerId** | [**string**] | The speaker 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**: 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)

