# BookingsResponsesApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getBookingResponseChanges**](#getbookingresponsechanges) | **GET** /bookings/{bookingId}/responses/{questionId}/changes | List a booking response\&#39;s edit history|
|[**updateBookingResponses**](#updatebookingresponses) | **PUT** /bookings/spaces/{spaceId}/bookings/{bookingId}/responses | Update a booking\&#39;s question responses|

# **getBookingResponseChanges**
> GetBookingResponseChanges200Response getBookingResponseChanges()

Returns a paginated list of edits made to a single question response on a booking, including the old and new values for each change; requires the \"read\" permission on \"bookings\".

### Example

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

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

let bookingId: string; //The booking 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.getBookingResponseChanges(
    bookingId,
    questionId,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

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

**GetBookingResponseChanges200Response**

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

# **updateBookingResponses**
> CreateAccountInvitations200Response updateBookingResponses(updateBookingResponsesInputs)

Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.

### Example

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

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

let spaceId: string; //The space identifier (default to undefined)
let bookingId: string; //The booking identifier (default to undefined)
let updateBookingResponsesInputs: UpdateBookingResponsesInputs; //

const { status, data } = await apiInstance.updateBookingResponses(
    spaceId,
    bookingId,
    updateBookingResponsesInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **updateBookingResponsesInputs** | **UpdateBookingResponsesInputs**|  | |
| **spaceId** | [**string**] | The space identifier | defaults to undefined|
| **bookingId** | [**string**] | The booking identifier | defaults to undefined|


### Return type

**CreateAccountInvitations200Response**

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

