# EventsTracksApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**addEventTrackSession**](#addeventtracksession) | **POST** /events/{eventId}/tracks/{trackId}/sessions/{sessionId} | Add a session to an event track|
|[**addEventTrackSponsor**](#addeventtracksponsor) | **POST** /events/{eventId}/tracks/{trackId}/sponsors/{sponsorId} | Add a sponsor to an event track|
|[**createEventTrack**](#createeventtrack) | **POST** /events/{eventId}/tracks | Create an event track|
|[**deleteEventTrack**](#deleteeventtrack) | **DELETE** /events/{eventId}/tracks/{trackId} | Delete an event track|
|[**getEventTrack**](#geteventtrack) | **GET** /events/{eventId}/tracks/{trackId} | Get an event track|
|[**getEventTrackSessions**](#geteventtracksessions) | **GET** /events/{eventId}/tracks/{trackId}/sessions | List sessions assigned to an event track|
|[**getEventTrackSponsors**](#geteventtracksponsors) | **GET** /events/{eventId}/tracks/{trackId}/sponsors | List an event track\&#39;s sponsor accounts|
|[**getEventTracks**](#geteventtracks) | **GET** /events/{eventId}/tracks | List an event\&#39;s tracks|
|[**removeEventTrackSession**](#removeeventtracksession) | **DELETE** /events/{eventId}/tracks/{trackId}/sessions/{sessionId} | Remove a session from an event track|
|[**removeEventTrackSponsor**](#removeeventtracksponsor) | **DELETE** /events/{eventId}/tracks/{trackId}/sponsors/{sponsorId} | Remove a sponsor from an event track|
|[**updateEventTrack**](#updateeventtrack) | **PUT** /events/{eventId}/tracks/{trackId} | Update an event track|

# **addEventTrackSession**
> CreateEventTrack200Response addEventTrackSession()

Associates an existing event session with the given track, and requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventTrack200Response**

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

# **addEventTrackSponsor**
> CreateEventTrack200Response addEventTrackSponsor()

Associates an account as a sponsor of the given event track, and requires update permission on both events and accounts.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let trackId: string; //The track identifier (default to undefined)
let sponsorId: string; //The sponsor identifier (default to undefined)

const { status, data } = await apiInstance.addEventTrackSponsor(
    eventId,
    trackId,
    sponsorId
);
```

### Parameters

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


### Return type

**CreateEventTrack200Response**

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

# **createEventTrack**
> CreateEventTrack200Response createEventTrack(eventTrackCreateInputs)

Creates a new track (a grouping of sessions, such as a themed agenda path) for the given event, and requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventTrack200Response**

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

# **deleteEventTrack**
> CreateAccountInvitations200Response deleteEventTrack()

Permanently deletes a track from the given event, and requires update permission on events.

### Example

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

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

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

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **trackId** | [**string**] | The track 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)

# **getEventTrack**
> CreateEventTrack200Response getEventTrack()

Retrieves the details of a single track belonging to an event, identified by track ID or slug; requires read permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventTrack200Response**

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

# **getEventTrackSessions**
> GetEventActivationSessions200Response getEventTrackSessions()

Returns a paginated list of the sessions linked to the given event track, supporting search and ordering; requires read permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let trackId: string; //The track 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.getEventTrackSessions(
    eventId,
    trackId,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **trackId** | [**string**] | The track 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

**GetEventActivationSessions200Response**

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

# **getEventTrackSponsors**
> GetAccounts200Response getEventTrackSponsors()

Returns a paginated list of accounts sponsoring the given event track, supporting search and ordering; requires read permission on events and accounts.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let trackId: string; //The track 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.getEventTrackSponsors(
    eventId,
    trackId,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **trackId** | [**string**] | The track 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

**GetAccounts200Response**

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

# **getEventTracks**
> GetEventSessionTracks200Response getEventTracks()

Returns a paginated list of tracks (content categories/tags used to group sessions) for the given event, supporting search and ordering; requires read permission on events.

### Example

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

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

**GetEventSessionTracks200Response**

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

# **removeEventTrackSession**
> CreateEventTrack200Response removeEventTrackSession()

Removes the association between an event session and the given track, and requires update permission on events.

### Example

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

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

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

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

### Parameters

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


### Return type

**CreateEventTrack200Response**

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

# **removeEventTrackSponsor**
> CreateEventTrack200Response removeEventTrackSponsor()

Removes an account\'s sponsorship association from the given event track, and requires update permission on both events and accounts.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let trackId: string; //The track identifier (default to undefined)
let sponsorId: string; //The sponsor identifier (default to undefined)

const { status, data } = await apiInstance.removeEventTrackSponsor(
    eventId,
    trackId,
    sponsorId
);
```

### Parameters

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


### Return type

**CreateEventTrack200Response**

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

# **updateEventTrack**
> CreateEventTrack200Response updateEventTrack(eventTrackUpdateInputs)

Updates the details of an existing track for the given event, such as its name or description, and requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let trackId: string; //The track identifier (default to undefined)
let eventTrackUpdateInputs: EventTrackUpdateInputs; //

const { status, data } = await apiInstance.updateEventTrack(
    eventId,
    trackId,
    eventTrackUpdateInputs
);
```

### Parameters

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


### Return type

**CreateEventTrack200Response**

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

