Updating dhan order (stop-loss through API)

I am tring to update the super order (trying to update the stop-loss value) but getting below error “{
“errorType”: “Order_Error”,
“errorCode”: “DH-906”,
“errorMessage”: “Missing required fields, bad values for parameters etc.”
}”

for requst “curl --request PUT

–data ‘{
“dhanClientId”: “23424”,
“orderId”: “4234234”,
“orderType”: “MARKET”,
“legName”: “STOP_LOSS_LEG”,
“quantity”: 75,
“price”: 100.65,
“triggerPrice”: 100.70,
“validity”: “DAY”
}’” I tried all permutations combinations but just doesn’t work. I retrieved the order using order-id and my stoploss leg is in pending "
{
“dhanClientId”: “234234”,
“orderId”: “34234”,
“exchangeOrderId”: “234234”,
“correlationId”: “SUPER_WINDOW”,
“orderStatus”: “TRADED”,
“transactionType”: “BUY”,
“exchangeSegment”: “NSE_FNO”,
“productType”: “INTRADAY”,
“orderType”: “MARKET”,
“validity”: “DAY”,
“tradingSymbol”: “NIFTY”,
“securityId”: “45266”,
“quantity”: 75,
“remainingQuantity”: 0,
“ltp”: 114.45,
“price”: 0.0,
“afterMarketOrder”: false,
“legName”: “ENTRY_LEG”,
“createTime”: “2025-10-16 10:26:14”,
“updateTime”: “2025-10-16 10:26:14”,
“exchangeTime”: “2025-10-16 10:26:14”,
“omsErrorDescription”: “TRADE CONFIRMED”,
“algoId”: “23424”,
“legDetails”: [
{
“orderId”: “234234”,
“legName”: “STOP_LOSS_LEG”,
“transactionType”: “SELL”,
“remainingQuantity”: 75,
“price”: 100.6,
“orderStatus”: “PENDING”,
“trailingJump”: 0.0
},
{
“orderId”: “234234”,
“legName”: “TARGET_LEG”,
“transactionType”: “SELL”,
“remainingQuantity”: 75,
“price”: 132.4,
“orderStatus”: “PENDING”,
“trailingJump”: 0.0
}
]"

I tried updating using dhan provided API (/ v2 / #/ operations / modifyorder) as well but doesn’t work

Hey @Rahul_Barve ,

As discussed over call , we are getting this checked and will get back to you accordingly.

@Shrutika_Poojari any updates?

Hey @Rahul_Barve ,

As replicated now , it should be working fine.

We request you to please check now.

Still facing the same issue

one more

Hello @Rahul_Barve ,

We request you to please use the correct request structure while modifying your Super order. Kindly refer to the below example for clarity:

{
    "dhanClientId": "1000000009",
    "orderId": "112111182045",
    "legName": "STOP_LOSS_LEG",
    "stopLossPrice": 1350,
    "trailingJump": 20
}

For more details, please check our documentation here: Super Order - DhanHQ Ver 2.0 / API Document

Hi @Trishul_Devadiga
Thanks. I have tried that before as well but still getting an error

One more from postman @Shrutika_Poojari

Please provide fix ASAP. the APIs simply doesn’t work. I will have to stop using dhan APIs if it doesn’t get fix soon

Hey @Rahul_Barve

We are looking into this, give us some time to come back to you. Alternatively, you can raise a ticket on help@dhan.co for the same as well.

Sure, I would request you guys to look into python APIs as well and also to update the documentation. I tried using python APIs (both dhan and tradehull) and it still doesn’t work. Please note that these are base APIs that must work