Unable to update the permission level through PATCH in devtool

Hi ,

I am updating the premission level through devtool

PATCH _opendistro/_security/api/roles/test23role

{ “op”: “add”,
“path”: “role2/cluster_permissions”,
“value”: [“cluster_composite_ops_ro”]

error :

{“statusCode”:400,“error”:“Bad Request”,“message”:“[request query.method]: Method must be one of, case insensitive [‘HEAD’, ‘GET’, ‘POST’, ‘PUT’, ‘DELETE’]. Received ‘PATCH’.”}

Please any one tell me .

@sskm this seems to be a bug, not sure if its with odfe or kibana.
Assuming you have below in elasticsearch.yml file:
opendistro_security.unsupported.restapi.allow_securityconfig_modification: true
Can you try the same with curl:

curl --insecure -u admin:admin -H "Content-Type: application/json" -X PATCH
https://localhost:9200/_opendistro/_security/api/roles -d '
  "op": "add", "path": "/test23role",  "value": { "cluster_permissions": ["cluster_composite_ops_ro"] }