UDIM Python API

Hello everyone,
I wanted to make use of the newly added UDIM implementation in an addon. There for I want to create UDIM tiles via python. Unfortunately I am not yet able to do it like I want.

I can create a texture which uses udim tiles. But I am not able to fill the udim tiles via python. They are empty. I cannot find a way to do it via the python api.

I have seen there is an operator (bpy.ops.image.tile_fill) that fills the tiles, but when calling the operator, it is an incorrect context. I have searched through the context override keys, but haven’t found anything that could be used. Is there a context override I can pass.

So my question is. Do we have a way to do it via python? If so, could you guys give me a hint how to best approach?

Thanks for your time,
Andreas