Code:
obj.setComponentVar("Rigidbody", "useGravity", false)
print(obj.getComponentVar("Rigidbody", "useGravity"))
Outputs false, however only the value set in Right Click > Physics > Use Gravity is actually respected. It would be good if the api method instead updated the value in the UI