# EventsActivationsSessionsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**addEventActivationSession**](#addeventactivationsession) | **POST** /events/{eventId}/activations/{activationId}/sessions/{sessionId} | Attach a session to an activation|
|[**removeEventActivationSession**](#removeeventactivationsession) | **DELETE** /events/{eventId}/activations/{activationId}/sessions/{sessionId} | Detach a session from an activation|
|[**removeEventActivationSessions**](#removeeventactivationsessions) | **DELETE** /events/{eventId}/activations/{activationId}/sessions | Detach all sessions from an activation|

# **addEventActivationSession**
> CreateEventActivation200Response addEventActivationSession()

Links an existing event session to an activation so checking in to that session counts toward completing it, failing if the session is already connected to another activation or if the activation\'s reward type is \"input\"; requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventActivation200Response**

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

# **removeEventActivationSession**
> CreateEventActivation200Response removeEventActivationSession()

Disconnects a single event session from an activation so checking in to it no longer counts toward completing the activation; requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventActivation200Response**

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

# **removeEventActivationSessions**
> CreateEventActivation200Response removeEventActivationSessions()

Disconnects every event session currently linked to an activation, clearing its session-based check-in requirements in a single call; requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventActivation200Response**

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

