How can I change the position of a physics EDGE?

I try to change the position of start and end points of an physics edge, but I can’t find a way how to change it in the body after it was created. The body.points can’t be used, its only possible with POLYGON. And a two point POLYGON also doesn’t work. If it is not possible, I would use a POLYGON, but it would be much simpler to use an EDGE.

I found a working solutions, but not sure if this makes problems: Each MOVING touch deletes the edge and and adds a new one to the list of bodies. Will this corrupt the physics engine or can I go with that approach?

I believe that, for every shape of body, that once the shape is set it is fixed. So your solution of destroying the old body with the old shape and replacing it with a new body with the new shape seems correct to me.