Programmatically create page version comparison link.
Hi,
I have a requirement to generate page version comparison link. This generation should be done programmatically, I checked the network tab in inspect mode and found that when we click on "compare to current" button, a post call is being made as below:


Checked in Postman tool and got the response as:
/tmp/versionhistory/cda84fd965d9f4dc59b3ec0eb3d50419109811fb85c90f303cea30374636dc3c/a627f8c8-b6dc-4ba5-b6ce-0f2f76810b9f/myProject/xyz
Now, how can we create this POST call programmatically and this should be created when running a workflow.
Any leads?
Link up issue:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sending-page-modification-details-of-author-on-publish-request/m-p/646679#M162159
Thanks