How can i send range value for pin without creating slider widget in the project

I want to send value for pin as a range using rest api. If i add a slider in the project and when i try to put value for pin it works but if i dont have a slider in project no matter what i write it always reads it as 0 or 1.

Did you set the output to 0 - 1023 like the slider?

Local server or Cloud server?

Pete.

Cloud server

Yes I did,

Is it set to a digital pin or a v pin?

Digital

I tried it with a v pin and it worked for me. Is there a need for it to be on the hardware pin?