Error While updating a limit order

I am trying to update a limit order but getting this weird error

End point: https://api-t1.fyers.in/api/v3/orders/sync

Method : PATCH

Req body: {“id”:“24041200279250”,“limitPrice”:107.75}

responseBody : {“code”:-50,“message”:“limitPrice: Must be less than or equal to 0”,“s”:“error”}

Here i am passing the ltp of the ordered symbol and as per documentation these 2 parameters only needed to do this. I also tried with v2 api with PUT method but there also getting same response.

Okay i figured this out. we also need to provide type in the payload which as per documentation is not required if we are not changing the type of order.

Hey @E5bsEWz0Km

Could you provide the inputs given from you’re end ? Also make sure the Type is 1 , if you’re placing a limit order