I extracted a page content configuration by adding the suffix "infinity.json", then I did a curl to that page to extract this JSON to a file.
Can I somehow edit this JSON and upload it again in order to update the content with a curl or a fetch?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Hi @caradeotario ,
You could achieve this by updating JCR Node property.
curl -v -u admin:admin -X POST http://localhost:4502/content/mysite/jcr:content --data-urlencode 'isCurlWorking=true'
Hope that helps!
@caradeotario - In that case (making multiple edits), I would prefer Bulk Editor:
The Bulk Editor allows for efficient editing when the visual page context is not needed. Kindly refer below articles for more details:
Not sure if I could use that. The points is to have a "Content as Code" and whenever I want to change something I just had to upload the json. Is that somehow feasible?
I wonder what could be the use case where you want to update the page content using the curl command when the same page can be authored via page editor. With or without curl, you would need same level of user permission to update the content nodes.
If the content nodes of a page needs to be updated based on an event/schedule, I would read the nodes in an OSGI service and update them accordingly using a system_user where I will more control over the nodes and permissions.
Just a thought!
Requesting you please check the "Data Importer" on https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/data-importer/index.h...
- This utility allows you to import data from a spreadsheet into AEM.
- It should allow you to update multiple metadata via excel