The answer depends on which client you are using to call the method (JS, Motoko, Rust, dfx etc).
Maybe this should provide the answer for you:
How to use rust to call
seems not possible at the moment