Trigger Quick Repair and Rebuild via script or API

Hi,

I'm trying to completely automate our Sugar deployment process and the last thing I need to automate is the Quick Repair and Rebuild that needs to happen after deployment.

I've tried various different ways of doing this:

  1. All the Repair and Rebuild scripts I've found out there don't seem to work for our version of Sugar (8.0.3)
  2. I've tried triggering it with an authenticated curl request to 
Parents Reply Children