Hi bluehelge,
Here is a simple POST example using --dry-run for sync:
https://forum.rclone.org/t/filter-in-restapi-mode/33187/7
I am pretty sure you can do the same with sync/copy.
More info on setting flags here:
https://rclone.org/rc/#setting-config-flags-with-config