Update spline after being placed

Hello does anyone know how to update a spline after an object has been placed and make an Object move along it?

spline before placing

Spline after placing