# EventsRegistrationsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**createEventRegistration**](#createeventregistration) | **POST** /events/{eventId}/registrations | Create an event registration|
|[**deleteEventRegistration**](#deleteeventregistration) | **DELETE** /events/{eventId}/registrations/{registrationId} | Delete an event registration|
|[**getEventAbandonedRegistrations**](#geteventabandonedregistrations) | **GET** /events/{eventId}/registrations/abandoned | List an event\&#39;s abandoned registrations|
|[**getEventPassRegistrationPasses**](#geteventpassregistrationpasses) | **GET** /events/{eventId}/passes/{passId}/attendee/passes | List every pass on the registration that owns a given pass|
|[**getEventRegistration**](#geteventregistration) | **GET** /events/{eventId}/registrations/{registrationId} | Get an event registration|
|[**getEventRegistrationCoupons**](#geteventregistrationcoupons) | **GET** /events/{eventId}/registrations/{registrationId}/coupons | List an event registration\&#39;s coupons|
|[**getEventRegistrationPasses**](#geteventregistrationpasses) | **GET** /events/{eventId}/registrations/{registrationId}/passes | List an event registration\&#39;s pass purchases|
|[**getEventRegistrationPayments**](#geteventregistrationpayments) | **GET** /events/{eventId}/registrations/{registrationId}/payments | List an event registration\&#39;s payments|
|[**getEventRegistrationTransfersLogs**](#geteventregistrationtransferslogs) | **GET** /events/{eventId}/registrations/{registrationId}/transfers/logs | List a registration\&#39;s pass transfer logs|
|[**getEventRegistrations**](#geteventregistrations) | **GET** /events/{eventId}/registrations | List an event\&#39;s registrations|
|[**resendRegistrationConfirmationEmail**](#resendregistrationconfirmationemail) | **POST** /events/{eventId}/registrations/{registrationId}/resendEmail | Resend registration confirmation email|
|[**sendRegistrationAbandonedEmail**](#sendregistrationabandonedemail) | **POST** /events/{eventId}/registrations/{registrationId}/abandonedEmail | Send abandoned registration email|
|[**syncEventRegistrations**](#synceventregistrations) | **POST** /events/{eventId}/registrations/sync | Sync an event\&#39;s registrations to accounts|
|[**updateEventRegistration**](#updateeventregistration) | **PUT** /events/{eventId}/registrations/{registrationId} | Update an event registration|

# **createEventRegistration**
> CreateEventRegistration200Response createEventRegistration(eventRegistrationCreateInputs)

Creates a new registration on an event for an existing account; requires read and create permission on attendees.

### Example

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

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

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

const { status, data } = await apiInstance.createEventRegistration(
    eventId,
    eventRegistrationCreateInputs
);
```

### Parameters

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


### Return type

**CreateEventRegistration200Response**

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

# **deleteEventRegistration**
> CreateEventRegistration200Response deleteEventRegistration()

Permanently deletes the registration record identified by its registration ID on the given event, removing it from the registration list; requires the \"del\" permission on attendees.

### Example

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

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

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

const { status, data } = await apiInstance.deleteEventRegistration(
    eventId,
    registrationId
);
```

### Parameters

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


### Return type

**CreateEventRegistration200Response**

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

# **getEventAbandonedRegistrations**
> GetAccountRegistrations200Response getEventAbandonedRegistrations()

Returns a paginated list of registrations for the given event with an idle draft cart (at least one draft pass, none of those drafts touched in four hours), including mixed/complete registrations; requires \"read\" permission on events and attendees.

### Example

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

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

**GetAccountRegistrations200Response**

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

# **getEventPassRegistrationPasses**
> GetEventAddOnPasses200Response getEventPassRegistrationPasses()

Resolves the registration that owns the given pass, then returns a paginated list of every pass on that registration — including the one identified by passId — optionally filtered by purchase status and search term; requires \"read\" permission on events and attendees.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let passId: string; //The pass identifier (default to undefined)
let status: PurchaseStatus; //Filter by status (optional) (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.getEventPassRegistrationPasses(
    eventId,
    passId,
    status,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **passId** | [**string**] | The pass identifier | defaults to undefined|
| **status** | **PurchaseStatus** | Filter by status | (optional) 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

**GetEventAddOnPasses200Response**

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

# **getEventRegistration**
> CreateEventRegistration200Response getEventRegistration()

Returns the details for a single registration on the given event, identified by its registration ID, including its pass/purchase history; requires \"read\" permission on events and attendees.

### Example

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

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

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

const { status, data } = await apiInstance.getEventRegistration(
    eventId,
    registrationId
);
```

### Parameters

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


### Return type

**CreateEventRegistration200Response**

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

# **getEventRegistrationCoupons**
> GetEventCoupons200Response getEventRegistrationCoupons()

Returns a paginated list of coupons associated with a specific registration on an event, identified by its registration ID, optionally filtered by paid/prePaid status, search term, and sort order; requires \"read\" permission on events and attendees.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let registrationId: string; //The registration identifier (default to undefined)
let prePaid: boolean; //Filter by prePaid (optional) (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.getEventRegistrationCoupons(
    eventId,
    registrationId,
    prePaid,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **registrationId** | [**string**] | The registration identifier | defaults to undefined|
| **prePaid** | [**boolean**] | Filter by prePaid | (optional) 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

**GetEventCoupons200Response**

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

# **getEventRegistrationPasses**
> GetEventAddOnPasses200Response getEventRegistrationPasses()

Returns a paginated list of pass purchases belonging to a specific registration on an event, identified by its registration ID, optionally filtered by purchase status, search term, and sort order; requires \"read\" permission on events and attendees.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let registrationId: string; //The registration identifier (default to undefined)
let status: PurchaseStatus; //Filter by status (optional) (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.getEventRegistrationPasses(
    eventId,
    registrationId,
    status,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **registrationId** | [**string**] | The registration identifier | defaults to undefined|
| **status** | **PurchaseStatus** | Filter by status | (optional) 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

**GetEventAddOnPasses200Response**

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

# **getEventRegistrationPayments**
> GetAccountPayments200Response getEventRegistrationPayments()

Returns a paginated list of payments made against a specific event registration, identified by its registration ID, with optional search and sort order; requires \"read\" permission on events, attendees, and payments.

### Example

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

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

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

### Parameters

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

**GetAccountPayments200Response**

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

# **getEventRegistrationTransfersLogs**
> GetEventPassTransferLogs200Response getEventRegistrationTransfersLogs()

Returns a paginated log of pass transfer activity (e.g. ownership changes) for a specific registration on an event, identified by its registration ID, with optional search and sort order; requires \"read\" permission on events and attendees.

### Example

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

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

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

### Parameters

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

**GetEventPassTransferLogs200Response**

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

# **getEventRegistrations**
> GetAccountRegistrations200Response getEventRegistrations()

Returns a paginated list of registrations for the given event, optionally filtered by purchase status and search term; requires \"read\" permission on events and attendees.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let status: PurchaseStatus; //Filter by status (optional) (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.getEventRegistrations(
    eventId,
    status,
    page,
    pageSize,
    orderBy,
    search
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **status** | **PurchaseStatus** | Filter by status | (optional) 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

**GetAccountRegistrations200Response**

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

# **resendRegistrationConfirmationEmail**
> CreateAccountInvitations200Response resendRegistrationConfirmationEmail()

Re-triggers the registration confirmation email for the registration identified by its registration ID on the given event by replaying the \"registration.submitted\" side effect; requires the \"update\" permission on attendees.

### Example

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

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

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

const { status, data } = await apiInstance.resendRegistrationConfirmationEmail(
    eventId,
    registrationId
);
```

### Parameters

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

# **sendRegistrationAbandonedEmail**
> CreateAccountInvitations200Response sendRegistrationAbandonedEmail()

Enqueues the abandoned-registration email for the registration identified by its registration ID on the given event, including after the sweeper has already claimed it; requires the \"update\" permission on attendees.

### Example

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

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

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

const { status, data } = await apiInstance.sendRegistrationAbandonedEmail(
    eventId,
    registrationId
);
```

### Parameters

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

# **syncEventRegistrations**
> SyncAccounts200Response syncEventRegistrations()

Enqueues every account registered for the given event for a background account-data sync job and returns the number of accounts enqueued; requires the \"read\" permission on attendees and \"update\" permission on accounts.

### Example

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

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

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

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

### Parameters

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


### Return type

**SyncAccounts200Response**

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

# **updateEventRegistration**
> CreateEventRegistration200Response updateEventRegistration(body)

Updates the registration record identified by its registration ID on the given event with the supplied fields, such as coupon or custom registration data; requires the \"update\" permission on attendees.

### Example

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

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

let eventId: string; //The event identifier (default to undefined)
let registrationId: string; //The registration identifier (default to undefined)
let body: object; //

const { status, data } = await apiInstance.updateEventRegistration(
    eventId,
    registrationId,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **object**|  | |
| **eventId** | [**string**] | The event identifier | defaults to undefined|
| **registrationId** | [**string**] | The registration identifier | defaults to undefined|


### Return type

**CreateEventRegistration200Response**

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

