Update conditional coloring with api

I’d like to update or set conditional coloring in the API.