Alfresco-4 / Rules

Last update: 2015 Dec 10

Creating a rule

This link shows how to use the ruleset API:

All related to the same API:


The JSON structure is explained here:

Grabbing a rule

How to grab the JSON description of the rule of id 1336be04-e409-47bc-a212-c28ebe8b0259 owned by the node 18c06c13-d012-4b1d-8259-1861387357c7.



  • http://{host}:{port}/alfresco/service/api/node/{storageType}/{storageName}/{nodeid}/ruleset/rules
    Gives all rules under that nodeid
  • http://{host}:{port}/alfresco/service/api/node/{storageType}/{storageName}/{nodeid}/ruleset/rules/{rule_node_id}
    Gives the detailed description of a given rule

Enable/Disable a rule

If you know the nodeid of a rule node and its owner node, then you can disable/enable it at will with the following:

curl -X PUT \
    http://admin:admin@localhost:8080/alfresco/service/api/node/workspace/SpacesStore/18c06c13-d012-4b1d-8259-1861387357c7/ruleset/rules/1336be04-e409-47bc-a212-c28ebe8b0259 \
    -d '{"disabled": "true"}'

With the field disabled set to true if you want it disabled.

(See for more details).