I am trying to change the settings by modifying the service definition associated with it in the REST admin API.
I went to https://services1.arcgis.com/.../rest/admin/services/[MY_LAYER]/FeatureServer?token=..., then in Add...
Here I tried changing:
"capabilities" : " Query "
to
"capabilities" : "Create,Delete,Query,Update,Editing,Sync"
but unfortunately I got an error 405 saying "This operation is not supported".
Moreover, inspecting the response from the dev tools when clicking the "save button" in the item details (not from REST) this is the message:
{"submissionTime":1523615946600,"lastUpdatedTime":1523615946600,"status":"Failed","error":{"code":500,"description":"Editing definition error - Pavia_WSL1"}}
I shared the resources publicly, if you want to investigate on the problem.
Any help would be greatly appreciated.
Thanks.