# AbacusApi.PredictionApi

All URIs are relative to *https://localhost/AizenGlobal/Abacus/1.1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**predictionsDelete**](PredictionApi.md#predictionsDelete) | **DELETE** /predictions/ | Delete selected predictions
[**predictionsGet**](PredictionApi.md#predictionsGet) | **GET** /predictions/ | Get list of predictions
[**predictionsIdDelete**](PredictionApi.md#predictionsIdDelete) | **DELETE** /predictions/{id}/ | Delete prediction
[**predictionsIdGet**](PredictionApi.md#predictionsIdGet) | **GET** /predictions/{id}/ | Get prediction info
[**predictionsIdPatch**](PredictionApi.md#predictionsIdPatch) | **PATCH** /predictions/{id}/ | Update prediction info
[**predictionsIdPredictPost**](PredictionApi.md#predictionsIdPredictPost) | **POST** /predictions/{id}/predict/ | Predict a prediction
[**predictionsPost**](PredictionApi.md#predictionsPost) | **POST** /predictions/ | Create a new prediction


<a name="predictionsDelete"></a>
# **predictionsDelete**
> predictionsDelete(body)

Delete selected predictions

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.PredictionApi();

var body = new AbacusApi.Body8(); // Body8 | IDs of predictions to delete.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.predictionsDelete(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Body8**](Body8.md)| IDs of predictions to delete. | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="predictionsGet"></a>
# **predictionsGet**
> InlineResponse2007 predictionsGet()

Get list of predictions

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.PredictionApi();

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

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

### Return type

[**InlineResponse2007**](InlineResponse2007.md)

### Authorization

No authorization required

### HTTP request headers

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

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

Delete prediction

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.PredictionApi();

var id = 56; // Number | ID of prediction to delete


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.predictionsIdDelete(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of prediction to delete | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="predictionsIdGet"></a>
# **predictionsIdGet**
> InlineResponse2009 predictionsIdGet(id)

Get prediction info

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.PredictionApi();

var id = 56; // Number | ID of prediction to get info of


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of prediction to get info of | 

### Return type

[**InlineResponse2009**](InlineResponse2009.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="predictionsIdPatch"></a>
# **predictionsIdPatch**
> predictionsIdPatch(id, body)

Update prediction info

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.PredictionApi();

var id = 56; // Number | ID of prediction to update

var body = new AbacusApi.Body9(); // Body9 | Attributes to update prediction with


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.predictionsIdPatch(id, body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of prediction to update | 
 **body** | [**Body9**](Body9.md)| Attributes to update prediction with | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="predictionsIdPredictPost"></a>
# **predictionsIdPredictPost**
> InlineResponse2003 predictionsIdPredictPost(id)

Predict a prediction

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.PredictionApi();

var id = 56; // Number | ID of prediction to predict


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of prediction to predict | 

### Return type

[**InlineResponse2003**](InlineResponse2003.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="predictionsPost"></a>
# **predictionsPost**
> InlineResponse2008 predictionsPost(body)

Create a new prediction

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.PredictionApi();

var body = new AbacusApi.Body7(); // Body7 | Prediction to create


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Body7**](Body7.md)| Prediction to create | 

### Return type

[**InlineResponse2008**](InlineResponse2008.md)

### Authorization

No authorization required

### HTTP request headers

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

