# EventsQuestionsTranslationsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteEventQuestionChoiceTranslation**](#deleteeventquestionchoicetranslation) | **DELETE** /events/{eventId}/questions/{questionId}/choices/{choiceId}/translations/{locale} | Delete a question choice translation|
|[**deleteEventQuestionTranslation**](#deleteeventquestiontranslation) | **DELETE** /events/{eventId}/questions/{questionId}/translations/{locale} | Delete an event question translation|
|[**getEventQuestionChoiceTranslation**](#geteventquestionchoicetranslation) | **GET** /events/{eventId}/questions/{questionId}/choices/{choiceId}/translations/{locale} | Get a question choice\&#39;s translation|
|[**getEventQuestionChoiceTranslations**](#geteventquestionchoicetranslations) | **GET** /events/{eventId}/questions/{questionId}/choices/{choiceId}/translations | List a question choice\&#39;s translations|
|[**getEventQuestionTranslation**](#geteventquestiontranslation) | **GET** /events/{eventId}/questions/{questionId}/translations/{locale} | Get a registration question\&#39;s translation|
|[**getEventQuestionTranslations**](#geteventquestiontranslations) | **GET** /events/{eventId}/questions/{questionId}/translations | List a registration question\&#39;s translations|
|[**updateEventQuestionChoiceTranslation**](#updateeventquestionchoicetranslation) | **PUT** /events/{eventId}/questions/{questionId}/choices/{choiceId}/translations/{locale} | Update a question choice translation|
|[**updateEventQuestionTranslation**](#updateeventquestiontranslation) | **PUT** /events/{eventId}/questions/{questionId}/translations/{locale} | Update an event question\&#39;s translation|

# **deleteEventQuestionChoiceTranslation**
> SyncAccounts200Response deleteEventQuestionChoiceTranslation()

Removes the translation for a specific locale from an answer choice of an event registration question; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)
let choiceId: string; //The choice identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

const { status, data } = await apiInstance.deleteEventQuestionChoiceTranslation(
    eventId,
    questionId,
    choiceId,
    locale
);
```

### Parameters

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

# **deleteEventQuestionTranslation**
> SyncAccounts200Response deleteEventQuestionTranslation()

Removes the translation for a specific locale from an event registration question; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

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

### Parameters

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

# **getEventQuestionChoiceTranslation**
> GetEventQuestionChoiceTranslation200Response getEventQuestionChoiceTranslation()

Returns the translation for a specific locale of a registration question choice on an event, or null if no translation exists for that locale; requires read permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)
let choiceId: string; //The choice identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

const { status, data } = await apiInstance.getEventQuestionChoiceTranslation(
    eventId,
    questionId,
    choiceId,
    locale
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **questionId** | [**string**] | The question identifier | defaults to undefined|
| **choiceId** | [**string**] | The choice identifier | defaults to undefined|
| **locale** | [**string**] | The locale identifier | defaults to undefined|


### Return type

**GetEventQuestionChoiceTranslation200Response**

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

# **getEventQuestionChoiceTranslations**
> GetEventQuestionChoiceTranslations200Response getEventQuestionChoiceTranslations()

Returns a paginated list of locale translations for a specific registration question choice on an event, with optional search and ordering; requires read permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)
let choiceId: string; //The choice 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.getEventQuestionChoiceTranslations(
    eventId,
    questionId,
    choiceId,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **questionId** | [**string**] | The question identifier | defaults to undefined|
| **choiceId** | [**string**] | The choice 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

**GetEventQuestionChoiceTranslations200Response**

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

# **getEventQuestionTranslation**
> GetEventQuestionTranslation200Response getEventQuestionTranslation()

Returns the translation for a specific locale of a registration question on an event, or null if no translation exists for that locale; requires read permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)

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

### Parameters

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


### Return type

**GetEventQuestionTranslation200Response**

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

# **getEventQuestionTranslations**
> GetEventQuestionTranslations200Response getEventQuestionTranslations()

Returns a paginated list of locale translations for a specific registration question on an event, with optional search and ordering; requires read permission on events.

### Example

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

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

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

### Parameters

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

**GetEventQuestionTranslations200Response**

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

# **updateEventQuestionChoiceTranslation**
> SyncAccounts200Response updateEventQuestionChoiceTranslation(eventQuestionChoiceTranslationUpdateInputs)

Creates or updates the translation for a specific locale on an answer choice of an event registration question; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)
let choiceId: string; //The choice identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)
let eventQuestionChoiceTranslationUpdateInputs: EventQuestionChoiceTranslationUpdateInputs; //

const { status, data } = await apiInstance.updateEventQuestionChoiceTranslation(
    eventId,
    questionId,
    choiceId,
    locale,
    eventQuestionChoiceTranslationUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventQuestionChoiceTranslationUpdateInputs** | **EventQuestionChoiceTranslationUpdateInputs**|  | |
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **questionId** | [**string**] | The question identifier | defaults to undefined|
| **choiceId** | [**string**] | The choice 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)

# **updateEventQuestionTranslation**
> SyncAccounts200Response updateEventQuestionTranslation(eventQuestionTranslationUpdateInputs)

Updates the translated text for a registration question in the given locale, creating the translation if it does not yet exist; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)
let eventQuestionTranslationUpdateInputs: EventQuestionTranslationUpdateInputs; //

const { status, data } = await apiInstance.updateEventQuestionTranslation(
    eventId,
    questionId,
    locale,
    eventQuestionTranslationUpdateInputs
);
```

### Parameters

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

