How to configure incremental refresh via code?

From this answer here it seems there is no way to do the first time configuration through API.