Description
Replaces the data object of a session.
Parameters
Name | Type | Description |
---|---|---|
data | Object, required | The new data object |
sessionKey | String, required | The session to update |
Example Request
function(params, credentials) {
let result = this.callWorkerMethod('sitesessionstore', 'updateSession', {
"sessionKey": "5cb4d890-2ea6-4deb-a09d-5ad8f78a2964_0",
"data": {
"completelyNew": "data"
}
});
return result;
}
Response
Name | Type | Description |
---|---|---|
created | String, ISO datetime | The create time of the session |
platform | String | The platform set in the create request |
platformVersion | String | The platform version set in the create request |
sessionKey | String | The session key with the update count appended |
updateCount | Integer | New sessions have a count of 0, the first update 1 etc |
updated | String, ISO datetime | When the session was last updated |
Example Response
{
"id": 97,
"result": {
"updateCount": 1,
"sessionKey": "5cb4d890-2ea6-4deb-a09d-5ad8f78a2964_1",
"created": "2023-08-01T13:05:54Z",
"platformVersion": "1",
"updated": "2023-08-01T13:10:21Z",
"platform": "APISERVER"
},
"jsonrpc": "2.0"
}
Last modified on 1 August 2023