Hi Mr/Mrs RC-CnC,
There is a lot of interest in 'springs' lately… as Winter is ending (for Northerners).
Look at the API Forum section.
How to do it … without putting in a lot of sweat and blood?
A spring (a coil) object can be quite easily parametrized and rendered in F360.
The simple demo file is attached. Look at User Parameters definitions.
Extend the model with additional model features (e.g. spring's feet).

Predicting your question ...
Can the spring height be driven by a joint (like a slider)?
The answer is ... realistically without sweat and blood, NO. … for the F360 you are using.
More advanced models are possible (with some effort), as visualized in my separate post titled… "Spring".
Regards
MichaelT
MichaelT