# EventsQuestionsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**addEventQuestionChoiceSubQuestion**](#addeventquestionchoicesubquestion) | **POST** /events/{eventId}/questions/{questionId}/choices/{choiceId}/subQuestions/{subQuestionId} | Add a sub-question to a question choice|
|[**attachEventQuestionSearchList**](#attacheventquestionsearchlist) | **PUT** /events/{eventId}/questions/{questionId}/searchlist | Attach a search list to a question|
|[**createEventQuestion**](#createeventquestion) | **POST** /events/{eventId}/questions | Create an event registration question|
|[**createEventQuestionChoice**](#createeventquestionchoice) | **POST** /events/{eventId}/questions/{questionId}/choices | Create a choice for an event question|
|[**deleteEventQuestion**](#deleteeventquestion) | **DELETE** /events/{eventId}/questions/{questionId} | Delete an event registration question|
|[**deleteEventQuestionChoice**](#deleteeventquestionchoice) | **DELETE** /events/{eventId}/questions/{questionId}/choices/{choiceId} | Delete a choice from an event question|
|[**detachEventQuestionSearchList**](#detacheventquestionsearchlist) | **DELETE** /events/{eventId}/questions/{questionId}/searchlist | Detach a search list from a question|
|[**getEventDashboardQuestions**](#geteventdashboardquestions) | **GET** /events/{eventId}/questions/dashboard | List registration questions shown on the event dashboard|
|[**getEventQuestion**](#geteventquestion) | **GET** /events/{eventId}/questions/{questionId} | Get a single registration question|
|[**getEventQuestionChoice**](#geteventquestionchoice) | **GET** /events/{eventId}/questions/{questionId}/choices/{choiceId} | Get a single registration question choice|
|[**getEventQuestionChoiceSubQuestions**](#geteventquestionchoicesubquestions) | **GET** /events/{eventId}/questions/{questionId}/choices/{choiceId}/subQuestions | List a question choice\&#39;s sub-questions|
|[**getEventQuestionChoices**](#geteventquestionchoices) | **GET** /events/{eventId}/questions/{questionId}/choices | List a registration question\&#39;s choices|
|[**getEventQuestionResponses**](#geteventquestionresponses) | **GET** /events/{eventId}/questions/{questionId}/responses | List responses to an event registration question|
|[**getEventQuestionSummaries**](#geteventquestionsummaries) | **GET** /events/{eventId}/questions/summary | List response summaries for an event\&#39;s questions|
|[**getEventQuestionSummary**](#geteventquestionsummary) | **GET** /events/{eventId}/questions/{questionId}/summary | Get a registration question\&#39;s response summary|
|[**getEventQuestions**](#geteventquestions) | **GET** /events/{eventId}/questions | List an event\&#39;s registration questions|
|[**removeEventQuestionChoiceSubQuestion**](#removeeventquestionchoicesubquestion) | **DELETE** /events/{eventId}/questions/{questionId}/choices/{choiceId}/subQuestions/{subQuestionId} | Remove a sub-question from a question choice|
|[**reorderEventQuestionChoiceSubQuestions**](#reordereventquestionchoicesubquestions) | **PUT** /events/{eventId}/questions/{questionId}/choices/{choiceId}/subQuestions/reorder | Reorder a question choice\&#39;s sub-questions|
|[**reorderEventQuestionChoices**](#reordereventquestionchoices) | **PUT** /events/{eventId}/questions/{questionId}/choices/reorder | Reorder an event question\&#39;s choices|
|[**updateEventQuestion**](#updateeventquestion) | **PUT** /events/{eventId}/questions/{questionId} | Update an event registration question|
|[**updateEventQuestionChoice**](#updateeventquestionchoice) | **PUT** /events/{eventId}/questions/{questionId}/choices/{choiceId} | Update a registration question choice|
|[**updateEventQuestionChoiceSubQuestion**](#updateeventquestionchoicesubquestion) | **PUT** /events/{eventId}/questions/{questionId}/choices/{choiceId}/subQuestions/{subQuestionId} | Update a question choice\&#39;s sub-question|

# **addEventQuestionChoiceSubQuestion**
> CreateEventQuestionChoice200Response addEventQuestionChoiceSubQuestion()

Links an existing event question as a follow-up sub-question shown when the given choice is selected, appending it to the end of that choice\'s sub-question order; requires update permission on events.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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 subQuestionId: string; //The subQuestion identifier (default to undefined)

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

### 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|
| **subQuestionId** | [**string**] | The subQuestion identifier | defaults to undefined|


### Return type

**CreateEventQuestionChoice200Response**

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

# **attachEventQuestionSearchList**
> CreateEventQuestion200Response attachEventQuestionSearchList(attachSearchListInputs)

Links an organization search list to a registration question so its values populate the question\'s selectable options, after verifying the search list exists and belongs to the organization; requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventQuestion200Response**

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

# **createEventQuestion**
> CreateEventQuestion200Response createEventQuestion(eventQuestionCreateInputs)

Creates a new registration question for an event, optionally attaching it to a section, a follow-up question, or a parent question\'s choice; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let eventQuestionCreateInputs: EventQuestionCreateInputs; //

const { status, data } = await apiInstance.createEventQuestion(
    eventId,
    eventQuestionCreateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventQuestionCreateInputs** | **EventQuestionCreateInputs**|  | |
| **eventId** | [**string**] | The event identifier | defaults to undefined|


### Return type

**CreateEventQuestion200Response**

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

# **createEventQuestionChoice**
> CreateEventQuestionChoice200Response createEventQuestionChoice(eventQuestionChoiceCreateInputs)

Creates a new selectable choice (option) for a registration question, inserting it at the requested sort position among the question\'s existing choices (max 100 per question); requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventQuestionChoice200Response**

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

# **deleteEventQuestion**
> CreateAccountInvitations200Response deleteEventQuestion()

Permanently deletes a registration question from an event and re-sequences the sort order of the event\'s remaining questions; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let questionId: string; //The question identifier (default to undefined)
let sectionId: string; //Filter by sectionId (optional) (default to undefined)
let followupId: string; //Filter by followupId (optional) (default to undefined)

const { status, data } = await apiInstance.deleteEventQuestion(
    eventId,
    questionId,
    sectionId,
    followupId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **questionId** | [**string**] | The question identifier | defaults to undefined|
| **sectionId** | [**string**] | Filter by sectionId | (optional) defaults to undefined|
| **followupId** | [**string**] | Filter by followupId | (optional) defaults to undefined|


### Return type

**CreateAccountInvitations200Response**

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

# **deleteEventQuestionChoice**
> CreateAccountInvitations200Response deleteEventQuestionChoice()

Permanently deletes a choice from a registration question and re-sequences the sort order of the question\'s remaining choices; blocked if the question is a checkbox type with existing responses, and requires update permission on events.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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)

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

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


### Return type

**CreateAccountInvitations200Response**

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

# **detachEventQuestionSearchList**
> CreateEventQuestion200Response detachEventQuestionSearchList()

Removes the currently attached organization search list from a registration question, clearing its search-list-backed options; requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventQuestion200Response**

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

# **getEventDashboardQuestions**
> GetEventDashboardQuestions200Response getEventDashboardQuestions()

Returns the registration questions configured to appear on an event\'s dashboard, optionally filtered by search; requires read permission on events and dashboards.

### Example

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

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

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

const { status, data } = await apiInstance.getEventDashboardQuestions(
    eventId
);
```

### Parameters

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


### Return type

**GetEventDashboardQuestions200Response**

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

# **getEventQuestion**
> CreateEventQuestion200Response getEventQuestion()

Returns the details of a single registration question belonging to an event; requires read permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventQuestion200Response**

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

# **getEventQuestionChoice**
> CreateEventQuestionChoice200Response getEventQuestionChoice()

Returns the details of a single answer choice belonging to a registration question on an event; requires read permission on events.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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)

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

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


### Return type

**CreateEventQuestionChoice200Response**

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

# **getEventQuestionChoiceSubQuestions**
> GetEventQuestionChoiceSubQuestions200Response getEventQuestionChoiceSubQuestions()

Returns a paginated list of follow-up sub-questions attached to a specific choice of a registration question on an event, filterable by search against the sub-question\'s name or label; requires read access to the event.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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.getEventQuestionChoiceSubQuestions(
    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

**GetEventQuestionChoiceSubQuestions200Response**

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

# **getEventQuestionChoices**
> GetEventQuestionChoices200Response getEventQuestionChoices()

Returns a paginated list of selectable choices for a registration question on an event, ordered by sort order by default and filterable by a search term against the choice value; requires read access to the event.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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.getEventQuestionChoices(
    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

**GetEventQuestionChoices200Response**

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

# **getEventQuestionResponses**
> GetEventPassResponses200Response getEventQuestionResponses()

Returns a paginated list of attendee-submitted responses to a specific registration question on an event, limited to purchases in the needsInfo or ready status and filterable by search against the responding attendee\'s name or email; requires read access to the event.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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.getEventQuestionResponses(
    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

**GetEventPassResponses200Response**

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

# **getEventQuestionSummaries**
> GetEventQuestionSummaries200Response getEventQuestionSummaries()

Returns a paginated list of summary statistics (such as response counts) for every registration question on an event, ordered by the question\'s sort order; requires read access to the event.

### Example

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

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

let eventId: string; //The event 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.getEventQuestionSummaries(
    eventId,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event 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

**GetEventQuestionSummaries200Response**

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

# **getEventQuestionSummary**
> GetEventQuestionSummary200Response getEventQuestionSummary()

Returns summary statistics for a single registration question on an event, such as the count of non-empty responses from purchases in the needsInfo or ready status; requires read access to the event.

### Example

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

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

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

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

### Parameters

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


### Return type

**GetEventQuestionSummary200Response**

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

# **getEventQuestions**
> GetEventQuestions200Response getEventQuestions()

Returns a paginated list of registration questions configured for an event, ordered by sort order by default and filterable by search against the question\'s name, label, or description; requires read access to the event.

### Example

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

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

let eventId: string; //The event 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.getEventQuestions(
    eventId,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event 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

**GetEventQuestions200Response**

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

# **removeEventQuestionChoiceSubQuestion**
> CreateAccountInvitations200Response removeEventQuestionChoiceSubQuestion()

Unlinks a sub-question previously attached to a question choice and re-sequences the sort order of that choice\'s remaining sub-questions; requires update permission on events.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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 subQuestionId: string; //The subQuestion identifier (default to undefined)

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

### 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|
| **subQuestionId** | [**string**] | The subQuestion identifier | defaults to undefined|


### Return type

**CreateAccountInvitations200Response**

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

# **reorderEventQuestionChoiceSubQuestions**
> ReorderEventQuestionChoiceSubQuestions200Response reorderEventQuestionChoiceSubQuestions(reorderEventFaqSectionQuestionsRequest)

Sets the display order of the sub-questions attached to a registration question choice by supplying the full, reordered list of sub-question IDs; requires update permission on events and fails if the provided list does not exactly match the choice\'s existing sub-questions.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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 reorderEventFaqSectionQuestionsRequest: ReorderEventFaqSectionQuestionsRequest; //

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

### Parameters

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


### Return type

**ReorderEventQuestionChoiceSubQuestions200Response**

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

# **reorderEventQuestionChoices**
> ReorderEventQuestionChoices200Response reorderEventQuestionChoices(reorderBookingSpaceQuestionChoicesRequest)

Sets the sort order of a registration question\'s choices to match the given array of choice IDs; requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**ReorderEventQuestionChoices200Response**

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

# **updateEventQuestion**
> CreateEventQuestion200Response updateEventQuestion(eventQuestionUpdateInputs)

Updates the fields of a registration question on an event, such as its label, type, visibility, or linked search list, and requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventQuestion200Response**

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

# **updateEventQuestionChoice**
> SyncAccounts200Response updateEventQuestionChoice(eventQuestionChoiceUpdateInputs)

Updates the fields of a single answer choice belonging to an event registration question, such as its label or value, and requires update permission on events.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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 eventQuestionChoiceUpdateInputs: EventQuestionChoiceUpdateInputs; //

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

### Parameters

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

# **updateEventQuestionChoiceSubQuestion**
> CreateEventQuestionChoice200Response updateEventQuestionChoiceSubQuestion(updateEventFollowupQuestionRequest)

Updates a sub-question attached to a registration question choice, most notably its sort order relative to the choice\'s other sub-questions, and requires update permission on events.

### Example

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

const configuration = new Configuration();
const apiInstance = new EventsQuestionsApi(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 subQuestionId: string; //The subQuestion identifier (default to undefined)
let updateEventFollowupQuestionRequest: UpdateEventFollowupQuestionRequest; //

const { status, data } = await apiInstance.updateEventQuestionChoiceSubQuestion(
    eventId,
    questionId,
    choiceId,
    subQuestionId,
    updateEventFollowupQuestionRequest
);
```

### Parameters

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


### Return type

**CreateEventQuestionChoice200Response**

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

