I want to know if it is possible to enable/disable a layer using the REST API.
I also want to toggle “Advertised” attribute by REST API, because I want to manage a lot of layers at the same time.
I couldn’t find anything about in docs, but I was trying sth like this:
PUT /geoserver/rest/layers/<layer_name>.xml
true
false
PS: I know I can do it the hard way: make a script to search and modify xml layer files in data dir. I think it’s not the right approach.