I'm working on some shell scripts to configure GeoServer instances using the REST endpoints, but I've become stuck with the GeoWebCache caching defaults. Is there any way to modify the gwc-cs.xml file using the REST endpoints for GeoServer or GWC?
I've been through the docs, but I can only see how to change the global settings. I can't see how to change the default grid sets, cache layers by default, etc.
The best alternative I can think of is to copy an XML file to the GeoServer data-dir and call the reload REST endpoint to reload the config.