Have a look here:
I also renamed that old thread from “Update collection” to “Update collection and singleton via api” to make it more clear.