# BookingsQuestionsTranslationsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteBookingSpaceQuestionTranslation**](#deletebookingspacequestiontranslation) | **DELETE** /bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale} | Delete a booking question translation|
|[**getBookingSpaceQuestionTranslation**](#getbookingspacequestiontranslation) | **GET** /bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale} | Get a booking question\&#39;s translation|
|[**getBookingSpaceQuestionTranslations**](#getbookingspacequestiontranslations) | **GET** /bookings/spaces/{spaceId}/questions/{questionId}/translations | List a booking question\&#39;s translations|
|[**updateBookingSpaceQuestionTranslation**](#updatebookingspacequestiontranslation) | **PUT** /bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale} | Update a booking question translation|

# **deleteBookingSpaceQuestionTranslation**
> SyncAccounts200Response deleteBookingSpaceQuestionTranslation()

Deletes the translation for the given locale on a booking space question, removing that language\'s localized label, description, and other translated fields; requires update permission on bookings.

### Example

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

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

let spaceId: string; //The space 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.deleteBookingSpaceQuestionTranslation(
    spaceId,
    questionId,
    locale
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **spaceId** | [**string**] | The space 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)

# **getBookingSpaceQuestionTranslation**
> GetBookingSpaceQuestionTranslation200Response getBookingSpaceQuestionTranslation()

Retrieves the translated label, description, and choices for a booking space question in a specific locale, returning null if no translation exists for that locale; requires the \"read\" permission on \"bookings\".

### Example

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

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

let spaceId: string; //The space 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.getBookingSpaceQuestionTranslation(
    spaceId,
    questionId,
    locale
);
```

### Parameters

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


### Return type

**GetBookingSpaceQuestionTranslation200Response**

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

# **getBookingSpaceQuestionTranslations**
> GetBookingSpaceQuestionTranslations200Response getBookingSpaceQuestionTranslations()

Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".

### Example

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

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

let spaceId: string; //The space identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)

const { status, data } = await apiInstance.getBookingSpaceQuestionTranslations(
    spaceId,
    questionId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **spaceId** | [**string**] | The space identifier | defaults to undefined|
| **questionId** | [**string**] | The question identifier | defaults to undefined|


### Return type

**GetBookingSpaceQuestionTranslations200Response**

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

# **updateBookingSpaceQuestionTranslation**
> UpdateBookingSpaceQuestionTranslation200Response updateBookingSpaceQuestionTranslation(bookingSpaceQuestionTranslationUpdateInputs)

Creates or updates the localized content (such as label and description) for a booking space question in the given locale; requires update permission on bookings.

### Example

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

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

let spaceId: string; //The space identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)
let locale: string; //The locale identifier (default to undefined)
let bookingSpaceQuestionTranslationUpdateInputs: BookingSpaceQuestionTranslationUpdateInputs; //

const { status, data } = await apiInstance.updateBookingSpaceQuestionTranslation(
    spaceId,
    questionId,
    locale,
    bookingSpaceQuestionTranslationUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **bookingSpaceQuestionTranslationUpdateInputs** | **BookingSpaceQuestionTranslationUpdateInputs**|  | |
| **spaceId** | [**string**] | The space identifier | defaults to undefined|
| **questionId** | [**string**] | The question identifier | defaults to undefined|
| **locale** | [**string**] | The locale identifier | defaults to undefined|


### Return type

**UpdateBookingSpaceQuestionTranslation200Response**

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

