The request was syntactically correct but its content is semantically invalid

Try the following:

[
    {
        "op": "replace",
        "path": "/beforeProvisioningRule",
        "value": {
            "type": "RULE",
            "id":"<rule id>",
            "name": "<rule name>"
        }
    }
]
1 Like