The only way is to do a GET to a file, edit it by adding the new rule and then perform the PUT, that is, there is no other way.
I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.
Please, if this post was useful, leave your kudos and mark it as solved.