Overwriting Content with Chef Server API Cookbook Uplaod

When I do ‘berks upload’ through the command line after changing the cookbook, I’m asked if I want to overwrite files like Gemfile, .gitignore, Thorfile, etc. Only when I choose yes, does the default HTML in my cookbook get updated. I’m trying to do this via the API but there’s no way to approve the overwrites so my HTML content doesn’t get updated. How do I go about ensuring that the new update is reflected through an API upload?