You can use the commit API request to commit a candidate configuration to a firewall.
You can validate a candidate configuration before committing it using Run Operational Mode Commands (API).

Related Documentation