# EventsSessionsTranslationsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteEventSessionTranslation**](#deleteeventsessiontranslation) | **DELETE** /events/{eventId}/sessions/{sessionId}/translations/{locale} | Delete a session\&#39;s translation|
|[**getEventSessionTranslation**](#geteventsessiontranslation) | **GET** /events/{eventId}/sessions/{sessionId}/translations/{locale} | Get a session\&#39;s translation|
|[**getEventSessionTranslations**](#geteventsessiontranslations) | **GET** /events/{eventId}/sessions/{sessionId}/translations | List an event session\&#39;s translations|
|[**updateEventSessionTranslation**](#updateeventsessiontranslation) | **PUT** /events/{eventId}/sessions/{sessionId}/translations/{locale} | Update a session\&#39;s translation|

# **deleteEventSessionTranslation**
> SyncAccounts200Response deleteEventSessionTranslation()

Permanently removes the localized content for an event session in the specified locale; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let sessionId: string; //The session identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

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

### Parameters

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

# **getEventSessionTranslation**
> GetEventSessionTranslation200Response getEventSessionTranslation()

Retrieves the translation for an event session in a given locale, returning null if no translation exists for that locale; requires read permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let sessionId: string; //The session identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

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

### Parameters

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


### Return type

**GetEventSessionTranslation200Response**

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

# **getEventSessionTranslations**
> GetEventSessionTranslations200Response getEventSessionTranslations()

Returns a paginated list of translation records for the given event session, one per locale, supporting search and ordering; requires read permission on events.

### Example

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

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

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

### Parameters

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

**GetEventSessionTranslations200Response**

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

# **updateEventSessionTranslation**
> SyncAccounts200Response updateEventSessionTranslation(eventSessionTranslationUpdateInputs)

Creates or updates the localized content (such as name and description) for an event session in the specified locale, upserting the translation record; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let sessionId: string; //The session identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)
let eventSessionTranslationUpdateInputs: EventSessionTranslationUpdateInputs; //

const { status, data } = await apiInstance.updateEventSessionTranslation(
    eventId,
    sessionId,
    locale,
    eventSessionTranslationUpdateInputs
);
```

### Parameters

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

