Setting State Via REST API

Hey everyone is it possible to update an attribute specifically a input_number via the REST API? I’m calling my the API via https://domain/api/states/input_number.tv_volume_up?api_password=password. I’m authenticating fine then for the parameters/body I specify application/json {“state”: “3.0”} but I get invalid JSON request. Does anyone know what I’m doing wrong? Has anyone been able to set a state with the REST API?


Nevermind I was using and I tried curl and it work not sure what I was doing wrong. Thanks.