Stop Limit Orders

I am having trouble getting the right formatting for a stop limit order. Bounces back with different errors. This is the payload format I am using.

{
“symbol”: “NQH6”,
“isAutomated”: ”true” ,
“accountId”: <YOUR_ACCOUNT_ID>,
“accountSpec”: “<YOUR_ACCOUNT_NAME>”,
“action”: “Sell”,
“orderType”: “Limit”,
“orderQty”: 1,
“price”: 5788.75,
“bracket1”: {
“action”: “Buy”,
“orderType”: “Stop”,
“stopPrice”: 5791.75
},
“bracket2”: {
“price”: 5768.75,
“orderType”: “Limit”,
“action”: “Buy”
}
}

Can anyone suggest or point out the error?