# DotVisionMotionApiV2.EventsApi

All URIs are relative to *http://dotvision-motion-webapi.azurewebsites.net*

Method | HTTP request | Description
------------- | ------------- | -------------
[**eventsCreateEvent**](EventsApi.md#eventsCreateEvent) | **POST** /api/events | Create an event
[**eventsDeleteEvent**](EventsApi.md#eventsDeleteEvent) | **DELETE** /api/events/{id} | Delete an event
[**eventsDeleteUniqueNameForEvent**](EventsApi.md#eventsDeleteUniqueNameForEvent) | **DELETE** /api/events/{id}/uniqueName | Delete unique name for event
[**eventsEventAddAdmin**](EventsApi.md#eventsEventAddAdmin) | **POST** /api/events/{id}/admins | Add an admin for an event
[**eventsEventAddOrganisation**](EventsApi.md#eventsEventAddOrganisation) | **POST** /api/events/{id}/organisation | Link an organisation to an event
[**eventsEventAddParticipant**](EventsApi.md#eventsEventAddParticipant) | **POST** /api/events/{id}/participants | Add a participant on an event
[**eventsEventAddStage**](EventsApi.md#eventsEventAddStage) | **POST** /api/events/{id}/stages | Add a stage to an event
[**eventsEventAdminsCount**](EventsApi.md#eventsEventAdminsCount) | **GET** /api/events/{id}/admins/count | Get event administrators count
[**eventsEventAdminsGetAll**](EventsApi.md#eventsEventAdminsGetAll) | **GET** /api/events/{id}/admins | Get event administrators collection
[**eventsEventDeleteAdmin**](EventsApi.md#eventsEventDeleteAdmin) | **DELETE** /api/events/{id}/admins | Delete an administrator of an event
[**eventsEventDeleteOrganisation**](EventsApi.md#eventsEventDeleteOrganisation) | **DELETE** /api/events/{id}/organisation | Unlink the organisation of an event
[**eventsEventDeleteParticipant**](EventsApi.md#eventsEventDeleteParticipant) | **DELETE** /api/events/{id}/participants | Delete a participants of an event
[**eventsEventDeleteStage**](EventsApi.md#eventsEventDeleteStage) | **DELETE** /api/events/{id}/stages/{stageId} | Delete the stage of an event
[**eventsEventParticipantsCount**](EventsApi.md#eventsEventParticipantsCount) | **GET** /api/events/{id}/participants/count | Get event participants count
[**eventsEventParticipantsGetAll**](EventsApi.md#eventsEventParticipantsGetAll) | **GET** /api/events/{id}/participants | Get event participants collection
[**eventsEventRegistrationsCount**](EventsApi.md#eventsEventRegistrationsCount) | **GET** /api/events/{id}/registrations/count | Get registrations count for an event
[**eventsEventStagesCount**](EventsApi.md#eventsEventStagesCount) | **GET** /api/events/{id}/stages/count | Get event stages count
[**eventsEventUpdateAdmin**](EventsApi.md#eventsEventUpdateAdmin) | **PUT** /api/events/{id}/admins | Update an administrator for an event
[**eventsEventUpdateParticipant**](EventsApi.md#eventsEventUpdateParticipant) | **PUT** /api/events/{id}/participants | Update a participant for an event
[**eventsEventUpdateStage**](EventsApi.md#eventsEventUpdateStage) | **PUT** /api/events/{id}/stages | Update a stage for an event
[**eventsGetAllCategories**](EventsApi.md#eventsGetAllCategories) | **GET** /api/events/{id}/categories | Get all categories for an event
[**eventsGetAllEventStages**](EventsApi.md#eventsGetAllEventStages) | **GET** /api/events/{id}/stages | Get all event stages
[**eventsGetAllEvents**](EventsApi.md#eventsGetAllEvents) | **GET** /api/events | Get events collection
[**eventsGetEvent**](EventsApi.md#eventsGetEvent) | **GET** /api/events/{id} | Get an individual event
[**eventsGetEventCategoriesCount**](EventsApi.md#eventsGetEventCategoriesCount) | **GET** /api/events/{id}/categories/count | Get number of categories for an event
[**eventsGetEventOrganisation**](EventsApi.md#eventsGetEventOrganisation) | **GET** /api/events/{id}/organisation | Get event organisation
[**eventsGetEventParticipantRegistration**](EventsApi.md#eventsGetEventParticipantRegistration) | **GET** /api/events/{id}/participants/{participantId}/registration | Get registration for a participants of an event
[**eventsGetEventRegistrations**](EventsApi.md#eventsGetEventRegistrations) | **GET** /api/events/{id}/registrations | Get registrations list for an event
[**eventsGetUniqueNameForEvent**](EventsApi.md#eventsGetUniqueNameForEvent) | **GET** /api/events/{id}/uniqueName | Get unique name attributed to the event
[**eventsLinkCategory**](EventsApi.md#eventsLinkCategory) | **POST** /api/events/{id}/categories | Link a category to an event
[**eventsPublicEventsCount**](EventsApi.md#eventsPublicEventsCount) | **GET** /api/events/count | Get public events count
[**eventsSearchEvents**](EventsApi.md#eventsSearchEvents) | **GET** /api/events/search | Search for an event by name
[**eventsSetUniqueNameForEvent**](EventsApi.md#eventsSetUniqueNameForEvent) | **POST** /api/events/{id}/uniqueName | Set unique name for event
[**eventsUnlinkCategory**](EventsApi.md#eventsUnlinkCategory) | **DELETE** /api/events/{id}/categories | Unlink a category from an event
[**eventsUpdateEvent**](EventsApi.md#eventsUpdateEvent) | **PUT** /api/events | Update an event
[**eventsUpdateUniqueNameForEvent**](EventsApi.md#eventsUpdateUniqueNameForEvent) | **PUT** /api/events/{id}/uniqueName | Update unique name for event


<a name="eventsCreateEvent"></a>
# **eventsCreateEvent**
> EventModel eventsCreateEvent(e)

Create an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var e = new DotVisionMotionApiV2.EventModel(); // {EventModel} Event model


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsCreateEvent(e, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **e** | [**EventModel**](EventModel.md)| Event model | 

### Return type

[**EventModel**](EventModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsDeleteEvent"></a>
# **eventsDeleteEvent**
> &#39;Boolean&#39; eventsDeleteEvent(id)

Delete an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsDeleteEvent(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsDeleteUniqueNameForEvent"></a>
# **eventsDeleteUniqueNameForEvent**
> &#39;Boolean&#39; eventsDeleteUniqueNameForEvent(id)

Delete unique name for event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsDeleteUniqueNameForEvent(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventAddAdmin"></a>
# **eventsEventAddAdmin**
> &#39;Boolean&#39; eventsEventAddAdmin(id, userId, friendlyRoleName)

Add an admin for an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var userId = "userId_example"; // {String} User id

var friendlyRoleName = "friendlyRoleName_example"; // {String} Friendly role name


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventAddAdmin(id, userId, friendlyRoleName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **userId** | **String**| User id | 
 **friendlyRoleName** | **String**| Friendly role name | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventAddOrganisation"></a>
# **eventsEventAddOrganisation**
> &#39;Boolean&#39; eventsEventAddOrganisation(id, organisationId)

Link an organisation to an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var organisationId = 789; // {Integer} Organisation id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventAddOrganisation(id, organisationId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **organisationId** | **Integer**| Organisation id | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventAddParticipant"></a>
# **eventsEventAddParticipant**
> ParticipantModel eventsEventAddParticipant(id, participant)

Add a participant on an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var participant = new DotVisionMotionApiV2.ParticipantModel(); // {ParticipantModel} Particpant model


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventAddParticipant(id, participant, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **participant** | [**ParticipantModel**](ParticipantModel.md)| Particpant model | 

### Return type

[**ParticipantModel**](ParticipantModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventAddStage"></a>
# **eventsEventAddStage**
> StageModel eventsEventAddStage(id, stage)

Add a stage to an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var stage = new DotVisionMotionApiV2.StageModel(); // {StageModel} Stage model


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventAddStage(id, stage, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **stage** | [**StageModel**](StageModel.md)| Stage model | 

### Return type

[**StageModel**](StageModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventAdminsCount"></a>
# **eventsEventAdminsCount**
> &#39;Integer&#39; eventsEventAdminsCount(id)

Get event administrators count

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventAdminsCount(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

**&#39;Integer&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventAdminsGetAll"></a>
# **eventsEventAdminsGetAll**
> [UserInRolesModel] eventsEventAdminsGetAll(id)

Get event administrators collection

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventAdminsGetAll(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

[**[UserInRolesModel]**](UserInRolesModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventDeleteAdmin"></a>
# **eventsEventDeleteAdmin**
> &#39;Boolean&#39; eventsEventDeleteAdmin(id, userId)

Delete an administrator of an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var userId = "userId_example"; // {String} User id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventDeleteAdmin(id, userId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **userId** | **String**| User id | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventDeleteOrganisation"></a>
# **eventsEventDeleteOrganisation**
> &#39;Boolean&#39; eventsEventDeleteOrganisation(id)

Unlink the organisation of an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventDeleteOrganisation(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventDeleteParticipant"></a>
# **eventsEventDeleteParticipant**
> &#39;Boolean&#39; eventsEventDeleteParticipant(id, participantId)

Delete a participants of an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var participantId = 789; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventDeleteParticipant(id, participantId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **participantId** | **Integer**|  | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventDeleteStage"></a>
# **eventsEventDeleteStage**
> &#39;Boolean&#39; eventsEventDeleteStage(id, stageId)

Delete the stage of an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var stageId = 789; // {Integer} Stage id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventDeleteStage(id, stageId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **stageId** | **Integer**| Stage id | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventParticipantsCount"></a>
# **eventsEventParticipantsCount**
> &#39;Integer&#39; eventsEventParticipantsCount(id)

Get event participants count

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventParticipantsCount(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

**&#39;Integer&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventParticipantsGetAll"></a>
# **eventsEventParticipantsGetAll**
> [ParticipantModel] eventsEventParticipantsGetAll(id)

Get event participants collection

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventParticipantsGetAll(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

[**[ParticipantModel]**](ParticipantModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventRegistrationsCount"></a>
# **eventsEventRegistrationsCount**
> &#39;Integer&#39; eventsEventRegistrationsCount(id)

Get registrations count for an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventRegistrationsCount(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

**&#39;Integer&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventStagesCount"></a>
# **eventsEventStagesCount**
> &#39;Integer&#39; eventsEventStagesCount(id)

Get event stages count

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventStagesCount(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

**&#39;Integer&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventUpdateAdmin"></a>
# **eventsEventUpdateAdmin**
> &#39;Boolean&#39; eventsEventUpdateAdmin(id, userId, friendlyRoleName)

Update an administrator for an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var userId = "userId_example"; // {String} User id

var friendlyRoleName = "friendlyRoleName_example"; // {String} Friendly role name


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventUpdateAdmin(id, userId, friendlyRoleName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **userId** | **String**| User id | 
 **friendlyRoleName** | **String**| Friendly role name | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventUpdateParticipant"></a>
# **eventsEventUpdateParticipant**
> &#39;Boolean&#39; eventsEventUpdateParticipant(id, participant)

Update a participant for an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var participant = new DotVisionMotionApiV2.ParticipantModel(); // {ParticipantModel} Participant model


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventUpdateParticipant(id, participant, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **participant** | [**ParticipantModel**](ParticipantModel.md)| Participant model | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsEventUpdateStage"></a>
# **eventsEventUpdateStage**
> &#39;Boolean&#39; eventsEventUpdateStage(id, stage)

Update a stage for an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var stage = new DotVisionMotionApiV2.StageModel(); // {StageModel} Stage model


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsEventUpdateStage(id, stage, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **stage** | [**StageModel**](StageModel.md)| Stage model | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsGetAllCategories"></a>
# **eventsGetAllCategories**
> [CategoryModel] eventsGetAllCategories(id)

Get all categories for an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsGetAllCategories(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

[**[CategoryModel]**](CategoryModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsGetAllEventStages"></a>
# **eventsGetAllEventStages**
> [StageModel] eventsGetAllEventStages(id)

Get all event stages

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsGetAllEventStages(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

[**[StageModel]**](StageModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsGetAllEvents"></a>
# **eventsGetAllEvents**
> [EventModel] eventsGetAllEvents(opts)

Get events collection

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var opts = { 
  'category': "category_example", // {String} Filter with category name : multisports | watersports | wintersports | motorsports | trailrunning | vttcycling | raidadventures | others. Default value : multisports.
  'privacy': "privacy_example", // {String} Filter with privacy : public | protected | private. Default value : public.
  'sortorder': "sortorder_example", // {String} Sort by : name | views | time. Default value : name.
  'index': 56, // {Integer} Index for paging. Default value : 0.
  'count': 56 // {Integer} Number of result by page. Default value : 20 (min value : 1 | max value : 100).
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsGetAllEvents(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **category** | **String**| Filter with category name : multisports | watersports | wintersports | motorsports | trailrunning | vttcycling | raidadventures | others. Default value : multisports. | [optional] 
 **privacy** | **String**| Filter with privacy : public | protected | private. Default value : public. | [optional] 
 **sortorder** | **String**| Sort by : name | views | time. Default value : name. | [optional] 
 **index** | **Integer**| Index for paging. Default value : 0. | [optional] 
 **count** | **Integer**| Number of result by page. Default value : 20 (min value : 1 | max value : 100). | [optional] 

### Return type

[**[EventModel]**](EventModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsGetEvent"></a>
# **eventsGetEvent**
> EventModel eventsGetEvent(id)

Get an individual event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsGetEvent(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

[**EventModel**](EventModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsGetEventCategoriesCount"></a>
# **eventsGetEventCategoriesCount**
> &#39;Integer&#39; eventsGetEventCategoriesCount(id)

Get number of categories for an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsGetEventCategoriesCount(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

**&#39;Integer&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsGetEventOrganisation"></a>
# **eventsGetEventOrganisation**
> OrganisationModel eventsGetEventOrganisation(id)

Get event organisation

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsGetEventOrganisation(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

[**OrganisationModel**](OrganisationModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsGetEventParticipantRegistration"></a>
# **eventsGetEventParticipantRegistration**
> RegistrationModel eventsGetEventParticipantRegistration(id, participantId)

Get registration for a participants of an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var participantId = 789; // {Integer} Participant id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsGetEventParticipantRegistration(id, participantId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **participantId** | **Integer**| Participant id | 

### Return type

[**RegistrationModel**](RegistrationModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsGetEventRegistrations"></a>
# **eventsGetEventRegistrations**
> [RegistrationModel] eventsGetEventRegistrations(id)

Get registrations list for an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsGetEventRegistrations(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

[**[RegistrationModel]**](RegistrationModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsGetUniqueNameForEvent"></a>
# **eventsGetUniqueNameForEvent**
> &#39;String&#39; eventsGetUniqueNameForEvent(id)

Get unique name attributed to the event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsGetUniqueNameForEvent(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 

### Return type

**&#39;String&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsLinkCategory"></a>
# **eventsLinkCategory**
> &#39;Boolean&#39; eventsLinkCategory(id, categoryId)

Link a category to an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var categoryId = 789; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsLinkCategory(id, categoryId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **categoryId** | **Integer**|  | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsPublicEventsCount"></a>
# **eventsPublicEventsCount**
> &#39;Integer&#39; eventsPublicEventsCount

Get public events count

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsPublicEventsCount(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

**&#39;Integer&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsSearchEvents"></a>
# **eventsSearchEvents**
> [EventModel] eventsSearchEvents(q, opts)

Search for an event by name

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var q = "q_example"; // {String} A query string

var opts = { 
  'count': 56 // {Integer} Number of events to return
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsSearchEvents(q, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **q** | **String**| A query string | 
 **count** | **Integer**| Number of events to return | [optional] 

### Return type

[**[EventModel]**](EventModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsSetUniqueNameForEvent"></a>
# **eventsSetUniqueNameForEvent**
> &#39;Boolean&#39; eventsSetUniqueNameForEvent(id, uniqueName)

Set unique name for event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var uniqueName = "uniqueName_example"; // {String} Unique name


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsSetUniqueNameForEvent(id, uniqueName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **uniqueName** | **String**| Unique name | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsUnlinkCategory"></a>
# **eventsUnlinkCategory**
> &#39;Boolean&#39; eventsUnlinkCategory(id, categoryId)

Unlink a category from an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var categoryId = 789; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsUnlinkCategory(id, categoryId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **categoryId** | **Integer**|  | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsUpdateEvent"></a>
# **eventsUpdateEvent**
> &#39;Boolean&#39; eventsUpdateEvent(e)

Update an event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var e = new DotVisionMotionApiV2.EventModel(); // {EventModel} Event model


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsUpdateEvent(e, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **e** | [**EventModel**](EventModel.md)| Event model | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json, application/xml, text/xml

<a name="eventsUpdateUniqueNameForEvent"></a>
# **eventsUpdateUniqueNameForEvent**
> &#39;Boolean&#39; eventsUpdateUniqueNameForEvent(id, newUniqueName)

Update unique name for event

### Example
```javascript
var DotVisionMotionApiV2 = require('dot-vision-motion-api-v2');

var api = new DotVisionMotionApiV2.EventsApi()

var id = 789; // {Integer} Event id

var newUniqueName = "newUniqueName_example"; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eventsUpdateUniqueNameForEvent(id, newUniqueName, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Event id | 
 **newUniqueName** | **String**|  | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json, application/xml, text/xml

