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


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?

  • I have got the same problem with a layer object. I' ve solved the problem with a PUT request instead of the POST request used fro the creation of the layer. Commented Aug 11, 2014 at 9:19
  • If you're not averse to using Python, I put a workaround here which uses Selenium to open a browser and make those changes programatically after you've created the workspace Commented Jun 15, 2017 at 6:17

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.