# DotVisionMotionApiV2.StagesApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**stagesCreateActivity**](StagesApi.md#stagesCreateActivity) | **POST** /api/stages/{id}/activities | Create activity for a stage
[**stagesCreateStageStatus**](StagesApi.md#stagesCreateStageStatus) | **POST** /api/stages/{id}/stageStatus | Create a status for a stage
[**stagesDeleteActivity**](StagesApi.md#stagesDeleteActivity) | **DELETE** /api/stages/{id}/activities | Delete activity of a stage
[**stagesDeleteStageStatus**](StagesApi.md#stagesDeleteStageStatus) | **DELETE** /api/stages/{id}/stageStatus | Delete a stage status
[**stagesGetAllActivities**](StagesApi.md#stagesGetAllActivities) | **GET** /api/stages/{id}/activities | Get all activities for a stage
[**stagesGetAllCategories**](StagesApi.md#stagesGetAllCategories) | **GET** /api/stages/{id}/categories | Get all categories for a stage
[**stagesGetAllCategoriesForActivity**](StagesApi.md#stagesGetAllCategoriesForActivity) | **GET** /api/stages/{id}/activities/{activityId}/categories | Get all categories for an activity
[**stagesGetCategoriesCountForActivity**](StagesApi.md#stagesGetCategoriesCountForActivity) | **GET** /api/stages/{id}/activities/{activityId}/categories/count | Get number of categories for an activity
[**stagesGetLastStageStatus**](StagesApi.md#stagesGetLastStageStatus) | **GET** /api/stages/{id}/lastStageStatus | Get last status of a stage
[**stagesGetParticipant**](StagesApi.md#stagesGetParticipant) | **GET** /api/stages/{id}/activities/{activityId}/participant | Get participant associated to the activity of a stage
[**stagesGetStage**](StagesApi.md#stagesGetStage) | **GET** /api/stages/{id} | Get a stage
[**stagesGetStageCategoriesCount**](StagesApi.md#stagesGetStageCategoriesCount) | **GET** /api/stages/{id}/categories/count | Get number of categories for a stage
[**stagesGetStageStatus**](StagesApi.md#stagesGetStageStatus) | **GET** /api/stages/{id}/stageStatus | Get status of a stage
[**stagesLinkCategory**](StagesApi.md#stagesLinkCategory) | **POST** /api/stages/{id}/activities/{activityId}/categories | Link a category to an activity
[**stagesLinkCategory_0**](StagesApi.md#stagesLinkCategory_0) | **POST** /api/stages/{id}/categories | Link a category to a stage
[**stagesUnlinkCategory**](StagesApi.md#stagesUnlinkCategory) | **DELETE** /api/stages/{id}/activities/{activityId}/categories | Unlink a category from an activity
[**stagesUnlinkCategory_0**](StagesApi.md#stagesUnlinkCategory_0) | **DELETE** /api/stages/{id}/categories | Unlink a category from a stage
[**stagesUpdateActivity**](StagesApi.md#stagesUpdateActivity) | **PUT** /api/stages/{id}/activities | Update activity of a stage


<a name="stagesCreateActivity"></a>
# **stagesCreateActivity**
> ActivityModel stagesCreateActivity(id, model)

Create activity for a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var model = new DotVisionMotionApiV2.ActivityModel(); // {ActivityModel} Activity model to create


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage id | 
 **model** | [**ActivityModel**](ActivityModel.md)| Activity model to create | 

### Return type

[**ActivityModel**](ActivityModel.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="stagesCreateStageStatus"></a>
# **stagesCreateStageStatus**
> &#39;Boolean&#39; stagesCreateStageStatus(id, status)

Create a status for a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var status = new DotVisionMotionApiV2.StageStatusModel(); // {StageStatusModel} Status model


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stages id | 
 **status** | [**StageStatusModel**](StageStatusModel.md)| Status 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="stagesDeleteActivity"></a>
# **stagesDeleteActivity**
> &#39;Boolean&#39; stagesDeleteActivity(id, activityId)

Delete activity of a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var activityId = "activityId_example"; // {String} Activity id


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage id | 
 **activityId** | **String**| Activity 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="stagesDeleteStageStatus"></a>
# **stagesDeleteStageStatus**
> &#39;Boolean&#39; stagesDeleteStageStatus(id, status, timestamp)

Delete a stage status

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var status = "status_example"; // {String} Status

var timestamp = new Date("2013-10-20T19:20:30+01:00"); // {Date} Timestamp


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stages id | 
 **status** | **String**| Status | 
 **timestamp** | **Date**| Timestamp | 

### 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="stagesGetAllActivities"></a>
# **stagesGetAllActivities**
> [ActivityModel] stagesGetAllActivities(id)

Get all activities for a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

var id = 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.stagesGetAllActivities(id, callback);
```

### Parameters

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

### Return type

[**[ActivityModel]**](ActivityModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

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

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

Get all categories for a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

var id = 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.stagesGetAllCategories(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage 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="stagesGetAllCategoriesForActivity"></a>
# **stagesGetAllCategoriesForActivity**
> [CategoryModel] stagesGetAllCategoriesForActivity(id, activityId)

Get all categories for an activity

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var activityId = "activityId_example"; // {String} Activity id


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage id | 
 **activityId** | **String**| Activity 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="stagesGetCategoriesCountForActivity"></a>
# **stagesGetCategoriesCountForActivity**
> &#39;Integer&#39; stagesGetCategoriesCountForActivity(id, activityId)

Get number of categories for an activity

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var activityId = "activityId_example"; // {String} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Activity id | 
 **activityId** | **String**|  | 

### 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="stagesGetLastStageStatus"></a>
# **stagesGetLastStageStatus**
> StageStatusModel stagesGetLastStageStatus(id)

Get last status of a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

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


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

### Parameters

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

### Return type

[**StageStatusModel**](StageStatusModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

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

<a name="stagesGetParticipant"></a>
# **stagesGetParticipant**
> ParticipantModel stagesGetParticipant(id, activityId)

Get participant associated to the activity of a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var activityId = "activityId_example"; // {String} Activity id


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage id | 
 **activityId** | **String**| Activity 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="stagesGetStage"></a>
# **stagesGetStage**
> StageModel stagesGetStage(id)

Get a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stages 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="stagesGetStageCategoriesCount"></a>
# **stagesGetStageCategoriesCount**
> &#39;Integer&#39; stagesGetStageCategoriesCount(id)

Get number of categories for a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

var id = 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.stagesGetStageCategoriesCount(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage 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="stagesGetStageStatus"></a>
# **stagesGetStageStatus**
> [StageStatusModel] stagesGetStageStatus(id)

Get status of a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

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


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

### Parameters

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

### Return type

[**[StageStatusModel]**](StageStatusModel.md)

### Authorization

No authorization required

### HTTP reuqest headers

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

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

Link a category to an activity

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var activityId = "activityId_example"; // {String} Activity id

var categoryId = 789; // {Integer} Cetegory id


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage id | 
 **activityId** | **String**| Activity id | 
 **categoryId** | **Integer**| Cetegory 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="stagesLinkCategory_0"></a>
# **stagesLinkCategory_0**
> &#39;Boolean&#39; stagesLinkCategory_0(id, categoryId)

Link a category to a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

var id = 789; // {Integer} Stage 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.stagesLinkCategory_0(id, categoryId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage 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="stagesUnlinkCategory"></a>
# **stagesUnlinkCategory**
> &#39;Boolean&#39; stagesUnlinkCategory(id, activityId, categoryId)

Unlink a category from an activity

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var activityId = "activityId_example"; // {String} Activity id

var categoryId = 789; // {Integer} Cetegory id


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage id | 
 **activityId** | **String**| Activity id | 
 **categoryId** | **Integer**| Cetegory 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="stagesUnlinkCategory_0"></a>
# **stagesUnlinkCategory_0**
> &#39;Boolean&#39; stagesUnlinkCategory_0(id, categoryId)

Unlink a category from a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

var id = 789; // {Integer} Stage 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.stagesUnlinkCategory_0(id, categoryId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage 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="stagesUpdateActivity"></a>
# **stagesUpdateActivity**
> &#39;Boolean&#39; stagesUpdateActivity(id, model)

Update activity of a stage

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

var api = new DotVisionMotionApiV2.StagesApi()

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

var model = new DotVisionMotionApiV2.ActivityModel(); // {ActivityModel} Activity model to udate


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Stage id | 
 **model** | [**ActivityModel**](ActivityModel.md)| Activity model to udate | 

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

