[GIS] How to set up a Workspace setting in Geoserver using Curl

curlgeoserver

I have successfully created a workspace + store + raster layer in Geoserver using Curl in PHP.

If I go back to Geoserver's UI and enter the Workspace that I have just created, the Settings: 'Enable' and any of the 'Services' are UNchecked (empty). I would like to enable them by using Curl.

If you visit:
http://docs.geoserver.org/latest/en/user/rest/examples/curl.html#

Apparently the only -simplest?- way of creating a workspace in geoserver is by using the XML tags:

<workspace><name>your name</name></workspace>

If I try to add new tags to the XML expression above, such as for instance

<enabled>True</enabled>

it gives you an error.

[500] No such field org.geoserver.catalog.impl.WorkspaceInfoImpl.enabled

So, Have anyone successfully configured those options of the Workspace by using Curl? For instance enabling WMS Services for that workspace?

By the way this post does not help too much:

Selecting service (WMS / WFS) through GeoServer REST API?

Best Answer

This looks like missing functionality (probably means it was added after the REST store) - so feel free to open a Jira ticket noting the issue and then attach a patch or pull request with the fix in.