There is no API that allows you to programatically create Actions. Modifying the JSON and pushing that way puts your assistant in an unsupported configuration.