# EventsSponsorshiplevelsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**createEventSponsorshipLevel**](#createeventsponsorshiplevel) | **POST** /events/{eventId}/sponsorshipLevels | Create an event sponsorship level|
|[**deleteEventSponsorshipLevel**](#deleteeventsponsorshiplevel) | **DELETE** /events/{eventId}/sponsorshipLevels/{levelId} | Delete an event sponsorship level|
|[**getEventSponsorshipLevel**](#geteventsponsorshiplevel) | **GET** /events/{eventId}/sponsorshipLevels/{levelId} | Get an event sponsorship level|
|[**getEventSponsorshipLevels**](#geteventsponsorshiplevels) | **GET** /events/{eventId}/sponsorshipLevels | List an event\&#39;s sponsorship levels|
|[**reorderEventSponsorshipLevels**](#reordereventsponsorshiplevels) | **PUT** /events/{eventId}/sponsorshipLevels/reorder | Reorder an event\&#39;s sponsorship levels|
|[**updateEventSponsorshipLevel**](#updateeventsponsorshiplevel) | **PUT** /events/{eventId}/sponsorshipLevels/{levelId} | Update an event sponsorship level|

# **createEventSponsorshipLevel**
> CreateEventSponsorshipLevel200Response createEventSponsorshipLevel(eventSponsorshipLevelCreateInputs)

Creates a new sponsorship level (e.g. Gold, Silver, Bronze) for the given event, which sponsors can then be assigned to; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let eventSponsorshipLevelCreateInputs: EventSponsorshipLevelCreateInputs; //

const { status, data } = await apiInstance.createEventSponsorshipLevel(
    eventId,
    eventSponsorshipLevelCreateInputs
);
```

### Parameters

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


### Return type

**CreateEventSponsorshipLevel200Response**

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

# **deleteEventSponsorshipLevel**
> CreateAccountInvitations200Response deleteEventSponsorshipLevel()

Permanently deletes a sponsorship level from the given event, along with its associated sponsorships; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let levelId: string; //The level identifier (default to undefined)

const { status, data } = await apiInstance.deleteEventSponsorshipLevel(
    eventId,
    levelId
);
```

### Parameters

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

# **getEventSponsorshipLevel**
> CreateEventSponsorshipLevel200Response getEventSponsorshipLevel()

Returns a single sponsorship level (e.g. Gold, Silver) defined for the given event; requires read permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let levelId: string; //The level identifier (default to undefined)

const { status, data } = await apiInstance.getEventSponsorshipLevel(
    eventId,
    levelId
);
```

### Parameters

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


### Return type

**CreateEventSponsorshipLevel200Response**

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

# **getEventSponsorshipLevels**
> GetEventSponsorshipLevels200Response getEventSponsorshipLevels()

Returns a paginated list of sponsorship levels defined for the given event, supporting search and ordering; requires read permission on events.

### Example

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

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

**GetEventSponsorshipLevels200Response**

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

# **reorderEventSponsorshipLevels**
> ReorderEventSponsorshipLevels200Response reorderEventSponsorshipLevels(reorderEventSponsorshipLevelsRequest)

Sets the display order of an event\'s sponsorship levels by supplying the full ordered list of level IDs; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let reorderEventSponsorshipLevelsRequest: ReorderEventSponsorshipLevelsRequest; //

const { status, data } = await apiInstance.reorderEventSponsorshipLevels(
    eventId,
    reorderEventSponsorshipLevelsRequest
);
```

### Parameters

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


### Return type

**ReorderEventSponsorshipLevels200Response**

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

# **updateEventSponsorshipLevel**
> CreateEventSponsorshipLevel200Response updateEventSponsorshipLevel(eventSponsorshipLevelUpdateInputs)

Updates the properties (e.g. name, description, benefits) of an existing sponsorship level for the given event; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let levelId: string; //The level identifier (default to undefined)
let eventSponsorshipLevelUpdateInputs: EventSponsorshipLevelUpdateInputs; //

const { status, data } = await apiInstance.updateEventSponsorshipLevel(
    eventId,
    levelId,
    eventSponsorshipLevelUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventSponsorshipLevelUpdateInputs** | **EventSponsorshipLevelUpdateInputs**|  | |
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **levelId** | [**string**] | The level identifier | defaults to undefined|


### Return type

**CreateEventSponsorshipLevel200Response**

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

