# EventsSessionsPricesApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**createEventSessionPrice**](#createeventsessionprice) | **POST** /events/{eventId}/sessions/{sessionId}/prices | Add a pass type price override to a session|
|[**deleteEventSessionPrice**](#deleteeventsessionprice) | **DELETE** /events/{eventId}/sessions/{sessionId}/prices/{priceId} | Remove a pass type price override from a session|
|[**updateEventSessionPrice**](#updateeventsessionprice) | **PUT** /events/{eventId}/sessions/{sessionId}/prices/{priceId} | Update a session\&#39;s pass type price override|

# **createEventSessionPrice**
> CreateEventSession200Response createEventSessionPrice(createEventSessionPriceRequest)

Creates a price override for a specific pass type on an event session so that pass type is sold at a different price for this session than its default price; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let sessionId: string; //The session identifier (default to undefined)
let createEventSessionPriceRequest: CreateEventSessionPriceRequest; //

const { status, data } = await apiInstance.createEventSessionPrice(
    eventId,
    sessionId,
    createEventSessionPriceRequest
);
```

### Parameters

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


### Return type

**CreateEventSession200Response**

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

# **deleteEventSessionPrice**
> CreateEventSession200Response deleteEventSessionPrice()

Deletes a pass type price override from an event session, reverting that pass type back to its default price for the session; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let sessionId: string; //The session identifier (default to undefined)
let priceId: string; //The price identifier (default to undefined)

const { status, data } = await apiInstance.deleteEventSessionPrice(
    eventId,
    sessionId,
    priceId
);
```

### Parameters

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


### Return type

**CreateEventSession200Response**

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

# **updateEventSessionPrice**
> CreateEventSession200Response updateEventSessionPrice()

Updates an existing pass type price override on an event session, allowing the pass type and/or override price to be changed; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let sessionId: string; //The session identifier (default to undefined)
let priceId: string; //The price identifier (default to undefined)
let updateEventSessionPriceRequest: UpdateEventSessionPriceRequest; // (optional)

const { status, data } = await apiInstance.updateEventSessionPrice(
    eventId,
    sessionId,
    priceId,
    updateEventSessionPriceRequest
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **updateEventSessionPriceRequest** | **UpdateEventSessionPriceRequest**|  | |
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **sessionId** | [**string**] | The session identifier | defaults to undefined|
| **priceId** | [**string**] | The price identifier | defaults to undefined|


### Return type

**CreateEventSession200Response**

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

