Is it possible to set an object's origin with bpy.ops.transform.resize()? I would like to scale an object with object's origin in a certain location. Is it possible to set an object's origin with bpy.ops.transform.resize()? 

I’ve examined the official API documentation, but method explanations are still quite scarce.

As far as I understand, there should be an option to set a pivot in float numbers (either in local or global coordininates).
You can use "center_override" for this. Here is the code:

bpy.ops.transform.resize(value=(1, 1, 1), center_override=(42, 42, 42))


Happy Blending! :)