Manage rules in the alfresco 7.4 community I Need to create API For rules in the alfresco 7.4 How?

cancel
Showing results for 
Search instead for 
Did you mean: 
KRANTHIKIRAN
Member II

Manage rules in the alfresco 7.4 community I Need to create API For rules in the alfresco 7.4 How?

I can't find the API for the alfresco Manage rule in the 7.4 community edition. Can you help me to solve this issue?

I need to run the rules through API not from the alfresco application. I tried different APIs for that but nothing can work for me can anyone guide me to solve the issue?

curl -i -u admin:admin -H "Content-Type: application/json" -X POST -d '{
  "rule": {
    "title": "Move Old Folders",
    "description": "Move folders older than one week to an archive folder.",
    "action": {
      "actionDefinitionName": "sys:move",
      "parameterValues": {
        "destination-folder": "workspace://SpacesStore/archive-folder-id"
      }
    },
    "condition": {
      "evaluator": "date.compare",
      "parameters": {
        "property": "cm:created",
        "before": "P1W"  // One week ago
      }
    }
  }
}' "http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/sites/{siteId}/containers/{containerId}/rules"