# RedbrickChallenge.ChallengeApi

All URIs are relative to _http://localhost:8083/{version}_

| Method                                                                           | HTTP request                               | Description |
| -------------------------------------------------------------------------------- | ------------------------------------------ | ----------- |
| [**createChallengeComment**](ChallengeApi.md#createChallengeComment)             | **POST** /challenge/comment                |
| [**createChallengeCommentLike**](ChallengeApi.md#createChallengeCommentLike)     | **POST** /challenge/comment/like/{id}      |
| [**createChallengeReComment**](ChallengeApi.md#createChallengeReComment)         | **POST** /challenge/re/comment/{id}        |
| [**createChallengeReCommentLike**](ChallengeApi.md#createChallengeReCommentLike) | **POST** /challenge/re/comment/like/{id}   |
| [**createVoteChallenge**](ChallengeApi.md#createVoteChallenge)                   | **POST** /challenge/vote                   |
| [**deleteChallengeComment**](ChallengeApi.md#deleteChallengeComment)             | **DELETE** /challenge/comment              |
| [**deleteChallengeCommentLike**](ChallengeApi.md#deleteChallengeCommentLike)     | **DELETE** /challenge/comment/like/{id}    |
| [**deleteChallengeReComment**](ChallengeApi.md#deleteChallengeReComment)         | **DELETE** /challenge/re/comment/{id}      |
| [**deleteChallengeReCommentLike**](ChallengeApi.md#deleteChallengeReCommentLike) | **DELETE** /challenge/re/comment/like/{id} |
| [**deleteVoteChallenge**](ChallengeApi.md#deleteVoteChallenge)                   | **DELETE** /challenge/vote                 |
| [**listChallenge**](ChallengeApi.md#listChallenge)                               | **GET** /challenge/list                    |
| [**listChallengeComment**](ChallengeApi.md#listChallengeComment)                 | **GET** /challenge/comment                 |
| [**listChallengeReComment**](ChallengeApi.md#listChallengeReComment)             | **GET** /challenge/re/comment/{id}         |
| [**updateChallengeComment**](ChallengeApi.md#updateChallengeComment)             | **PATCH** /challenge/comment               |
| [**updateChallengeReComment**](ChallengeApi.md#updateChallengeReComment)         | **PATCH** /challenge/re/comment/{id}       |
| [**updateChallengeVotecount**](ChallengeApi.md#updateChallengeVotecount)         | **PATCH** /challenge/votecount/{id}        |

<a name="createChallengeComment"></a>

# **createChallengeComment**

> ResponseMessage createChallengeComment(opts)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let opts = {
  body: new RedbrickChallenge.ChallengeCommentBody(), // ChallengeCommentBody |
};
apiInstance.createChallengeComment(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name     | Type                                                | Description | Notes      |
| -------- | --------------------------------------------------- | ----------- | ---------- |
| **body** | [**ChallengeCommentBody**](ChallengeCommentBody.md) |             | [optional] |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

<a name="createChallengeCommentLike"></a>

# **createChallengeCommentLike**

> ResponseMessage createChallengeCommentLike(id)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | createChallengeCommentLike id

apiInstance.createChallengeCommentLike(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name   | Type       | Description                   | Notes |
| ------ | ---------- | ----------------------------- | ----- |
| **id** | **String** | createChallengeCommentLike id |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="createChallengeReComment"></a>

# **createChallengeReComment**

> ResponseMessage createChallengeReComment(id, opts)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | createChallengeReComment id
let opts = {
  body: new RedbrickChallenge.CommentIdBody(), // CommentIdBody |
};
apiInstance.createChallengeReComment(id, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name     | Type                                  | Description                 | Notes      |
| -------- | ------------------------------------- | --------------------------- | ---------- |
| **id**   | **String**                            | createChallengeReComment id |
| **body** | [**CommentIdBody**](CommentIdBody.md) |                             | [optional] |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

<a name="createChallengeReCommentLike"></a>

# **createChallengeReCommentLike**

> ResponseMessage createChallengeReCommentLike(id)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | createChallengeReCommentLike id

apiInstance.createChallengeReCommentLike(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name   | Type       | Description                     | Notes |
| ------ | ---------- | ------------------------------- | ----- |
| **id** | **String** | createChallengeReCommentLike id |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="createVoteChallenge"></a>

# **createVoteChallenge**

> CommentResponse createVoteChallenge(id)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | vote of a challenge

apiInstance.createVoteChallenge(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name   | Type       | Description         | Notes |
| ------ | ---------- | ------------------- | ----- |
| **id** | **String** | vote of a challenge |

### Return type

[**CommentResponse**](CommentResponse.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="deleteChallengeComment"></a>

# **deleteChallengeComment**

> ResponseMessage deleteChallengeComment(id)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | delete comment id of a challenge

apiInstance.deleteChallengeComment(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name   | Type       | Description                      | Notes |
| ------ | ---------- | -------------------------------- | ----- |
| **id** | **String** | delete comment id of a challenge |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="deleteChallengeCommentLike"></a>

# **deleteChallengeCommentLike**

> ResponseMessage deleteChallengeCommentLike(id)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | deleteChallengeCommentLike id

apiInstance.deleteChallengeCommentLike(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name   | Type       | Description                   | Notes |
| ------ | ---------- | ----------------------------- | ----- |
| **id** | **String** | deleteChallengeCommentLike id |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="deleteChallengeReComment"></a>

# **deleteChallengeReComment**

> ResponseMessage deleteChallengeReComment(id, parentId)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | delete recomment id of a challenge
let parentId = 'parentId_example'; // String | delete recomment parentId of a challenge

apiInstance.deleteChallengeReComment(id, parentId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name         | Type       | Description                              | Notes |
| ------------ | ---------- | ---------------------------------------- | ----- |
| **id**       | **String** | delete recomment id of a challenge       |
| **parentId** | **String** | delete recomment parentId of a challenge |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="deleteChallengeReCommentLike"></a>

# **deleteChallengeReCommentLike**

> ResponseMessage deleteChallengeReCommentLike(id)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | deleteChallengeReCommentLike id

apiInstance.deleteChallengeReCommentLike(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name   | Type       | Description                     | Notes |
| ------ | ---------- | ------------------------------- | ----- |
| **id** | **String** | deleteChallengeReCommentLike id |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="deleteVoteChallenge"></a>

# **deleteVoteChallenge**

> ResponseMessage deleteVoteChallenge(id)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | delete vote of a challenge

apiInstance.deleteVoteChallenge(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name   | Type       | Description                | Notes |
| ------ | ---------- | -------------------------- | ----- |
| **id** | **String** | delete vote of a challenge |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="listChallenge"></a>

# **listChallenge**

> ListChallengeResponse listChallenge(opts)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let opts = {
  offset: 56, // Number | listChallenge offset
  limit: 56, // Number | listChallenge limit
};
apiInstance.listChallenge(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name       | Type       | Description          | Notes      |
| ---------- | ---------- | -------------------- | ---------- |
| **offset** | **Number** | listChallenge offset | [optional] |
| **limit**  | **Number** | listChallenge limit  | [optional] |

### Return type

[**ListChallengeResponse**](ListChallengeResponse.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="listChallengeComment"></a>

# **listChallengeComment**

> CommentResponse listChallengeComment(opts)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let opts = {
  offset: 56, // Number | listChallengeComment offset
  limit: 56, // Number | listChallengeComment limit
};
apiInstance.listChallengeComment(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name       | Type       | Description                 | Notes      |
| ---------- | ---------- | --------------------------- | ---------- |
| **offset** | **Number** | listChallengeComment offset | [optional] |
| **limit**  | **Number** | listChallengeComment limit  | [optional] |

### Return type

[**CommentResponse**](CommentResponse.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="listChallengeReComment"></a>

# **listChallengeReComment**

> CommentResponse listChallengeReComment(id, opts)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | listChallengeReComment id
let opts = {
  offset: 56, // Number | listChallengeReComment offset
  limit: 56, // Number | listChallengeReComment limit
};
apiInstance.listChallengeReComment(id, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name       | Type       | Description                   | Notes      |
| ---------- | ---------- | ----------------------------- | ---------- |
| **id**     | **String** | listChallengeReComment id     |
| **offset** | **Number** | listChallengeReComment offset | [optional] |
| **limit**  | **Number** | listChallengeReComment limit  | [optional] |

### Return type

[**CommentResponse**](CommentResponse.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="updateChallengeComment"></a>

# **updateChallengeComment**

> ResponseMessage updateChallengeComment(id, opts)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | update comment id of a challenge
let opts = {
  body: new RedbrickChallenge.ChallengeCommentBody1(), // ChallengeCommentBody1 |
};
apiInstance.updateChallengeComment(id, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name     | Type                                                  | Description                      | Notes      |
| -------- | ----------------------------------------------------- | -------------------------------- | ---------- |
| **id**   | **String**                                            | update comment id of a challenge |
| **body** | [**ChallengeCommentBody1**](ChallengeCommentBody1.md) |                                  | [optional] |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

<a name="updateChallengeReComment"></a>

# **updateChallengeReComment**

> ResponseMessage updateChallengeReComment(id, opts)

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | update recomment id of a challenge
let opts = {
  body: new RedbrickChallenge.CommentIdBody1(), // CommentIdBody1 |
};
apiInstance.updateChallengeReComment(id, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name     | Type                                    | Description                        | Notes      |
| -------- | --------------------------------------- | ---------------------------------- | ---------- |
| **id**   | **String**                              | update recomment id of a challenge |
| **body** | [**CommentIdBody1**](CommentIdBody1.md) |                                    | [optional] |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

<a name="updateChallengeVotecount"></a>

# **updateChallengeVotecount**

> ResponseMessage updateChallengeVotecount(id, opts)

updateChallengeVotecount id

### Example

```javascript
import {RedbrickChallenge} from 'redbrick_challenge';
let defaultClient = RedbrickChallenge.ApiClient.instance;

let apiInstance = new RedbrickChallenge.ChallengeApi();
let id = 'id_example'; // String | updateChallengeVotecount id
let opts = {
  body: new RedbrickChallenge.VotecountIdBody(), // VotecountIdBody |
};
apiInstance.updateChallengeVotecount(id, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

| Name     | Type                                      | Description                 | Notes      |
| -------- | ----------------------------------------- | --------------------------- | ---------- |
| **id**   | **String**                                | updateChallengeVotecount id |
| **body** | [**VotecountIdBody**](VotecountIdBody.md) |                             | [optional] |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
