Eddie, you may configure Kentico to rebuild index whenever, lets say, document is created or updated. Now, once you'll update a document through Rest api, Kentico should rebuild it.
Regarding running scheduled task you should implement custom event handler, e.g. Document update after, where you'll execute anything you need, including running a task.