I am trying to activate a GeoServer OWS (WFS) service via the REST interface for a workspace.
In the GeoServer admin interface, there are two boxes to tick for enabling a service manually. One in the "Edit Workspace" page and one on the service page itself, as in the screenshots. Both need to be ticked to have the service enabled.
Edit Workspace page:
Service page:
I am able to enable the box on the service page via the REST call
PUT http://localhost:8080/geoserver/rest/services/wfs/workspaces/workspace/settings
sending this as the json body:
{"wfs":{"enabled":true}}
The problem is, I have to manually enable the WFS checkbox on the "Edit Workspace" page first, otherwise the REST call will return a 500 Internal Server Error.
How can I get the first checkbox ticked as well using a REST call?