The following works for me: 

PUT
/geoserver/rest/workspaces/<workspace>/datastores/<data_store>/featuretypes/<layer_name>

<featureType>
  <enabled>true</enabled>
  <advertised>false</advertised>
</featureType>



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Toggle-Enabled-and-Advertised-attribute-layer-by-Geoserver-REST-API-tp5201881p5230043.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to