creating a spring join on grab?

i know this isnt really vr specific but i dont have a lot of knowledge on this topic. I want to be able create a spring joint between an object when i grab it, i cant find any documentation on that so i was wondering if anyone had a solution?

OnGrab you add the rigidbody of the object you grab to the springjoint on the hand and enable the join