Grease Pencil Fill tool via Python Scripting

I am trying to fill enclosed shapes in Grease Pencil using Python Script, as if using the fill tool. There seems to be a Grease Pencil operator, but I haven’t been able to figure out how to use it in the script ( bpy.ops.gpencil.fill()).
Any help would be much appreciated.