Creating session data for the current user
Create session data for the current user in a solution application.
Method
POST.
Resource URL
https://<web server hostname>/ibm/water/api/solution/<SOLUTION_ID>/page/<PAGE_ID>/userPreference
For example, https://<web server hostname>/ibm/water/api/solution/Sunshine/page/water.Sunshine.SupervisorOperations/userPreference.
Request Parameters
{
"DATA": [{
"data": {
"refreshInterval": 15,
"state": "Normal",
"selected": 0,
"refreshUnit": "seconds"
},
"id": "FilterPanel"
},
{
"data": {
"time": 29160000,
"isChecked": true,
"date": 1384704000000
},
"id": "DateTimeFilter"
},
{
"data": {
"zoom": 11,
"lon": -86.22000000000001,
"lat": 41.67000000000008
},
"id": "MapView"
},
{
"data": {
"isDefault": true
},
"id": "BaseMap_1"
},
{
"state": "Collapsed",
"id": "SupportingContentPanel"
},
{
"state": "Normal",
"id": "DrillDownPanel"
}],
}
Response
{
"SOLUTION_ID": "Sunshine",
"PAGE_ID": "water.Sunshine.SupervisorOperations",
"USER_ID": "iocadmin",
"DATA": [{
"data": {
"refreshInterval": 15,
"state": "Normal",
"selected": 0,
"refreshUnit": "seconds"
},
"id": "FilterPanel"
},
{
"data": {
"time": 29160000,
"isChecked": true,
"date": 1384704000000
},
"id": "DateTimeFilter"
},
{
"data": {
"zoom": 11,
"lon": -86.22000000000001,
"lat": 41.67000000000008
},
"id": "MapView"
},
{
"data": {
"isDefault": true
},
"id": "BaseMap_1"
},
{
"state": "Collapsed",
"id": "SupportingContentPanel"
},
{
"state": "Normal",
"id": "DrillDownPanel"
}]
}