# JReportServer.ConfigurationApi

All URIs are relative to *http://localhost:8888/jrserver/api/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**addDashboardProfile**](ConfigurationApi.md#addDashboardProfile) | **POST** /profilelist/dashboard | Add a profile.
[**addPageStudioProfile**](ConfigurationApi.md#addPageStudioProfile) | **POST** /profilelist/pagestudio | Add a profile.
[**addWebStudioProfile**](ConfigurationApi.md#addWebStudioProfile) | **POST** /profilelist/webstudio | Add a profile.
[**deleteDashboardProfile**](ConfigurationApi.md#deleteDashboardProfile) | **DELETE** /profile/dashboard | Delete the profile.
[**deletePageStudioProfile**](ConfigurationApi.md#deletePageStudioProfile) | **DELETE** /profile/pagestudio | Delete the profile.
[**deleteWebStudioProfile**](ConfigurationApi.md#deleteWebStudioProfile) | **DELETE** /profile/webstudio | Delete the profile.
[**getDashboardProfileProperties**](ConfigurationApi.md#getDashboardProfileProperties) | **GET** /profile/dashboard | Get the properties of the profile.
[**getDashboardProfiles**](ConfigurationApi.md#getDashboardProfiles) | **GET** /profilelist/dashboard | Get the profiles.
[**getDefaultServerPreference**](ConfigurationApi.md#getDefaultServerPreference) | **GET** /preference/default/server | Get the default preference of the server.
[**getDefaultViewerPreference**](ConfigurationApi.md#getDefaultViewerPreference) | **GET** /preference/default/viewer | Get the default preference of JReport Viewer..
[**getPageStudioProfileProperties**](ConfigurationApi.md#getPageStudioProfileProperties) | **GET** /profile/pagestudio | Get the properties of the profile.
[**getPageStudioProfiles**](ConfigurationApi.md#getPageStudioProfiles) | **GET** /profilelist/pagestudio | Get the profiles.
[**getUserServerPreference**](ConfigurationApi.md#getUserServerPreference) | **GET** /preference/server | Get the user preference of the server.
[**getUserViewerPreference**](ConfigurationApi.md#getUserViewerPreference) | **GET** /preference/viewer | Get the user preference of JReport Viewer.
[**getWebStudioProfileProperties**](ConfigurationApi.md#getWebStudioProfileProperties) | **GET** /profile/webstudio | Get the properties of the profile.
[**getWebStudioProfiles**](ConfigurationApi.md#getWebStudioProfiles) | **GET** /profilelist/webstudio | Get the profiles.
[**setDefaultServerPreference**](ConfigurationApi.md#setDefaultServerPreference) | **PUT** /preference/default/server | Set the default preference of the server.
[**setDefaultViewerPreference**](ConfigurationApi.md#setDefaultViewerPreference) | **PUT** /preference/default/viewer | Set the default preference of JReport Viewer..
[**setUserServerPreference**](ConfigurationApi.md#setUserServerPreference) | **PUT** /preference/server | Set the user preference of the server.
[**setUserViewerPreference**](ConfigurationApi.md#setUserViewerPreference) | **PUT** /preference/viewer | Get the user preference of JReport Viewer.
[**updateDashboardProfile**](ConfigurationApi.md#updateDashboardProfile) | **PUT** /profile/dashboard | Update the properties of the profile.
[**updatePageStudioProfile**](ConfigurationApi.md#updatePageStudioProfile) | **PUT** /profile/pagestudio | Update the properties of the profile.
[**updateWebStudioProfile**](ConfigurationApi.md#updateWebStudioProfile) | **PUT** /profile/webstudio | Update the properties of the profile.


<a name="addDashboardProfile"></a>
# **addDashboardProfile**
> addDashboardProfile(profileNameprofileDsh)

Add a profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.

var profileDsh = new JReportServer.DashboardProfile(); // DashboardProfile | JDashboard profile properties.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 
 **profileDsh** | [**DashboardProfile**](DashboardProfile.md)| JDashboard profile properties. | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="addPageStudioProfile"></a>
# **addPageStudioProfile**
> addPageStudioProfile(profileNameprofileCls)

Add a profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.

var profileCls = new JReportServer.PageStudioProfile(); // PageStudioProfile | Page Report Studio profile properties.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 
 **profileCls** | [**PageStudioProfile**](PageStudioProfile.md)| Page Report Studio profile properties. | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="addWebStudioProfile"></a>
# **addWebStudioProfile**
> addWebStudioProfile(profileNameprofileWls)

Add a profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.

var profileWls = new JReportServer.WebStudioProfile(); // WebStudioProfile | Web Report Studio profile properties.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 
 **profileWls** | [**WebStudioProfile**](WebStudioProfile.md)| Web Report Studio profile properties. | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="deleteDashboardProfile"></a>
# **deleteDashboardProfile**
> deleteDashboardProfile(profileName)

Delete the profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="deletePageStudioProfile"></a>
# **deletePageStudioProfile**
> deletePageStudioProfile(profileName)

Delete the profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="deleteWebStudioProfile"></a>
# **deleteWebStudioProfile**
> deleteWebStudioProfile(profileName)

Delete the profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getDashboardProfileProperties"></a>
# **getDashboardProfileProperties**
> DashboardProfile getDashboardProfileProperties(profileName)

Get the properties of the profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 

### Return type

[**DashboardProfile**](DashboardProfile.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getDashboardProfiles"></a>
# **getDashboardProfiles**
> [Profile] getDashboardProfiles()

Get the profiles.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

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

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

### Return type

[**[Profile]**](Profile.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getDefaultServerPreference"></a>
# **getDefaultServerPreference**
> ServerPreference getDefaultServerPreference()

Get the default preference of the server.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

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

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

### Return type

[**ServerPreference**](ServerPreference.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getDefaultViewerPreference"></a>
# **getDefaultViewerPreference**
> ViewerPreference getDefaultViewerPreference()

Get the default preference of JReport Viewer..



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

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

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

### Return type

[**ViewerPreference**](ViewerPreference.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getPageStudioProfileProperties"></a>
# **getPageStudioProfileProperties**
> PageStudioProfile getPageStudioProfileProperties(profileName)

Get the properties of the profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 

### Return type

[**PageStudioProfile**](PageStudioProfile.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getPageStudioProfiles"></a>
# **getPageStudioProfiles**
> [Profile] getPageStudioProfiles()

Get the profiles.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

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

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

### Return type

[**[Profile]**](Profile.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getUserServerPreference"></a>
# **getUserServerPreference**
> ServerPreference getUserServerPreference(opts)

Get the user preference of the server.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var opts = { 
  'userName': "userName_example", // String | The user name.
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userName** | **String**| The user name. | [optional] 

### Return type

[**ServerPreference**](ServerPreference.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getUserViewerPreference"></a>
# **getUserViewerPreference**
> ViewerPreference getUserViewerPreference(opts)

Get the user preference of JReport Viewer.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var opts = { 
  'userName': "userName_example", // String | The user name.
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userName** | **String**| The user name. | [optional] 

### Return type

[**ViewerPreference**](ViewerPreference.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getWebStudioProfileProperties"></a>
# **getWebStudioProfileProperties**
> WebStudioProfile getWebStudioProfileProperties(profileName)

Get the properties of the profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 

### Return type

[**WebStudioProfile**](WebStudioProfile.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="getWebStudioProfiles"></a>
# **getWebStudioProfiles**
> [Profile] getWebStudioProfiles()

Get the profiles.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

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

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

### Return type

[**[Profile]**](Profile.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="setDefaultServerPreference"></a>
# **setDefaultServerPreference**
> setDefaultServerPreference(opts)

Set the default preference of the server.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var opts = { 
  'preference': new JReportServer.ServerPreference() // ServerPreference | Server preference.
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **preference** | [**ServerPreference**](ServerPreference.md)| Server preference. | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="setDefaultViewerPreference"></a>
# **setDefaultViewerPreference**
> setDefaultViewerPreference(opts)

Set the default preference of JReport Viewer..



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var opts = { 
  'preference': new JReportServer.ViewerPreference() // ViewerPreference | Viewer preference.
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **preference** | [**ViewerPreference**](ViewerPreference.md)| Viewer preference. | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="setUserServerPreference"></a>
# **setUserServerPreference**
> setUserServerPreference(opts)

Set the user preference of the server.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var opts = { 
  'userName': "userName_example", // String | The user name.
  'preference': new JReportServer.ServerPreference() // ServerPreference | Server preference.
  'restoreDefaultPreference': false // Boolean | Specifies whether to restore the default preference.
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userName** | **String**| The user name. | [optional] 
 **preference** | [**ServerPreference**](ServerPreference.md)| Server preference. | [optional] 
 **restoreDefaultPreference** | **Boolean**| Specifies whether to restore the default preference. | [optional] [default to false]

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="setUserViewerPreference"></a>
# **setUserViewerPreference**
> setUserViewerPreference(opts)

Get the user preference of JReport Viewer.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var opts = { 
  'userName': "userName_example", // String | The user name.
  'preference': new JReportServer.ViewerPreference() // ViewerPreference | Viewer preference.
  'restoreDefaultPreference': false // Boolean | Specifies whether to restore the default preference.
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userName** | **String**| The user name. | [optional] 
 **preference** | [**ViewerPreference**](ViewerPreference.md)| Viewer preference. | [optional] 
 **restoreDefaultPreference** | **Boolean**| Specifies whether to restore the default preference. | [optional] [default to false]

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="updateDashboardProfile"></a>
# **updateDashboardProfile**
> updateDashboardProfile(profileNameprofileDsh)

Update the properties of the profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.

var profileDsh = new JReportServer.DashboardProfile(); // DashboardProfile | JDashboard profile properties.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 
 **profileDsh** | [**DashboardProfile**](DashboardProfile.md)| JDashboard profile properties. | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="updatePageStudioProfile"></a>
# **updatePageStudioProfile**
> updatePageStudioProfile(profileNameprofileCls)

Update the properties of the profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.

var profileCls = new JReportServer.PageStudioProfile(); // PageStudioProfile | Page Report Studio profile properties.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 
 **profileCls** | [**PageStudioProfile**](PageStudioProfile.md)| Page Report Studio profile properties. | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

<a name="updateWebStudioProfile"></a>
# **updateWebStudioProfile**
> updateWebStudioProfile(profileNameprofileWls)

Update the properties of the profile.



### Example
```javascript
var JReportServer = require('j_report_server');
var defaultClient = JReportServer.ApiClient.instance;

// Configure HTTP basic authorization: user_auth
var user_auth = defaultClient.authentications['user_auth'];
user_auth.username = 'YOUR USERNAME';
user_auth.password = 'YOUR PASSWORD';

var apiInstance = new JReportServer.ConfigurationApi();

var profileName = "profileName_example"; // String | The profile name.

var profileWls = new JReportServer.WebStudioProfile(); // WebStudioProfile | Web Report Studio profile properties.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileName** | **String**| The profile name. | 
 **profileWls** | [**WebStudioProfile**](WebStudioProfile.md)| Web Report Studio profile properties. | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: text/plain, application/json

