Device parameter - config during payload parser

Device parameter - config during payload parser

Hi,
I know that I can read value of configuration parameters using: 
const type = device.params.find(param => param.key === "x");
But it is possible to CHANGE value of parameter (at payload parser) and save it?
It is important for me, because I must calculate and add new variable based on value of actual and previous payload.