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"