When I try to use the "set inverse" operator in python there comes an error that it missed a context called "constraint". But I did it exactly like in the Info Panel.
bpy.ops.constraint.childof_set_inverse(constraint="Child Of", owner='BONE')
The Name of the constraint is correct and the also the owner