# EventsActivationsTranslationsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteEventActivationTranslation**](#deleteeventactivationtranslation) | **DELETE** /events/{eventId}/activations/{activationId}/translations/{locale} | Delete an activation\&#39;s translation|
|[**getEventActivationTranslation**](#geteventactivationtranslation) | **GET** /events/{eventId}/activations/{activationId}/translations/{locale} | Get an event activation\&#39;s translation|
|[**getEventActivationTranslations**](#geteventactivationtranslations) | **GET** /events/{eventId}/activations/{activationId}/translations | List translations for an activation|
|[**updateEventActivationTranslation**](#updateeventactivationtranslation) | **PUT** /events/{eventId}/activations/{activationId}/translations/{locale} | Create or update an activation\&#39;s translation|

# **deleteEventActivationTranslation**
> SyncAccounts200Response deleteEventActivationTranslation()

Removes the translated content for an event activation in the specified locale, deleting that locale\'s name and descriptions; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let activationId: string; //The activation identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

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

### Parameters

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

# **getEventActivationTranslation**
> GetEventActivationTranslation200Response getEventActivationTranslation()

Returns the translated content for a given event activation in the specified locale, or null if no translation exists for that locale; requires read permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let activationId: string; //The activation identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

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

### Parameters

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


### Return type

**GetEventActivationTranslation200Response**

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

# **getEventActivationTranslations**
> GetEventActivationTranslations200Response getEventActivationTranslations()

Returns a paginated list of locale translations for the specified event activation, supporting search and ordering; requires read access to the event\'s events module.

### Example

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

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

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

### Parameters

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

**GetEventActivationTranslations200Response**

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

# **updateEventActivationTranslation**
> UpdateEventActivationTranslation200Response updateEventActivationTranslation(eventActivationTranslationUpdateInputs)

Upserts the translated name and descriptions for an event activation in the specified locale, creating the translation record if it does not already exist; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let activationId: string; //The activation identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)
let eventActivationTranslationUpdateInputs: EventActivationTranslationUpdateInputs; //

const { status, data } = await apiInstance.updateEventActivationTranslation(
    eventId,
    activationId,
    locale,
    eventActivationTranslationUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventActivationTranslationUpdateInputs** | **EventActivationTranslationUpdateInputs**|  | |
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **activationId** | [**string**] | The activation identifier | defaults to undefined|
| **locale** | [**string**] | The locale identifier | defaults to undefined|


### Return type

**UpdateEventActivationTranslation200Response**

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

