How to pass filters from client side, not through embedded question

I want to be able to pass filters for my query from client side.
var payload = {
resource: { question: 8},
params: { myFilterField: filter },
exp: Math.round(Date.now() / 1000) + (60 * 60)
};

Is it possible to do this in the params section of the payload? Or elsewhere?

Hi @pacman
Yes, then set the parameter to Editable instead of Locked.
https://www.metabase.com/docs/latest/administration-guide/13-embedding.html

Ah it was that simple. Awesome Thanks!