# EventsEmailsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getEventEmail**](#geteventemail) | **GET** /events/{eventId}/emails/{type} | Get an event\&#39;s email configuration|
|[**updateEventEmail**](#updateeventemail) | **PUT** /events/{eventId}/emails/{type} | Update an event email template|

# **getEventEmail**
> GetEventEmail200Response getEventEmail()

Returns the configuration (body, reply-to, enabled state, calendar file setting) for a given event email type such as confirmation, cancellation, reminder, approval, denial, or transfer; requires read permission on events.

### Example

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

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

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

const { status, data } = await apiInstance.getEventEmail(
    eventId,
    type
);
```

### Parameters

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


### Return type

**GetEventEmail200Response**

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

# **updateEventEmail**
> GetEventEmail200Response updateEventEmail(eventEmailUpdateInputs)

Updates the content of a specific automated email (by type, e.g. registration confirmation) sent for an event; requires update permission on events.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let type: string; //The type identifier (default to undefined)
let eventEmailUpdateInputs: EventEmailUpdateInputs; //

const { status, data } = await apiInstance.updateEventEmail(
    eventId,
    type,
    eventEmailUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventEmailUpdateInputs** | **EventEmailUpdateInputs**|  | |
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **type** | [**string**] | The type identifier | defaults to undefined|


### Return type

**GetEventEmail200Response**

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

