# BookingsPlacesApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**createBookingPlace**](#createbookingplace) | **POST** /bookings/places | Create a booking place|
|[**deleteBookingPlace**](#deletebookingplace) | **DELETE** /bookings/places/{placeId} | Delete a booking place|
|[**updateBookingPlace**](#updatebookingplace) | **PUT** /bookings/places/{placeId} | Update a booking place|

# **createBookingPlace**
> CreateBookingPlace200Response createBookingPlace(bookingPlaceCreateInputs)

Creates a new booking place (a bookable location such as a venue or facility) for the organization, requires the update bookings permission.

### Example

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

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

let bookingPlaceCreateInputs: BookingPlaceCreateInputs; //

const { status, data } = await apiInstance.createBookingPlace(
    bookingPlaceCreateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **bookingPlaceCreateInputs** | **BookingPlaceCreateInputs**|  | |


### Return type

**CreateBookingPlace200Response**

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

# **deleteBookingPlace**
> CreateAccountInvitations200Response deleteBookingPlace()

Permanently deletes a booking place from the organization by its ID, requires the update bookings permission.

### Example

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

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

let placeId: string; //The place identifier (default to undefined)

const { status, data } = await apiInstance.deleteBookingPlace(
    placeId
);
```

### Parameters

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

# **updateBookingPlace**
> CreateBookingPlace200Response updateBookingPlace(bookingPlaceUpdateInputs)

Updates the details of an existing booking place by its ID, excluding its image and identifying/audit fields, requires the update bookings permission.

### Example

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

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

let placeId: string; //The place identifier (default to undefined)
let bookingPlaceUpdateInputs: BookingPlaceUpdateInputs; //

const { status, data } = await apiInstance.updateBookingPlace(
    placeId,
    bookingPlaceUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **bookingPlaceUpdateInputs** | **BookingPlaceUpdateInputs**|  | |
| **placeId** | [**string**] | The place identifier | defaults to undefined|


### Return type

**CreateBookingPlace200Response**

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

