Can I define the color of an annotation via the API?

I’m working on generating my own annotations via the API - however, all of my annotations are the same color. I’d like to create annotations similar to how annotations are created with alerts (event is red, healthy is green). Is this doable?

Have you found a solution ?