400 error bad request when placing orders

Hello everyone, whenever I try to place an order by sending a post request to https://demo.tradovateapi.com/v1/order/placeorder I get a 400 error “bad request.” I also see that the response says { violations: [array] }. My access token was just refreshed before running the program and has worked with other endpoints. My request snippet is below along with some screenshots. Please advise. Any assistance is appreciated.

    let params = {
        "accountId": CENSORED,
        "action": "Buy",
        "symbol": "RTYH3",
        "orderQty": 1,
        "orderType": "TrailingStop",
        "timeInForce": "GTC",
        "isAutomated": true
    }

    axios.post("https://demo.tradovateapi.com/v1/order/placeorder", params ,{
        headers: {
            "Authorization": `Bearer ${accessToken}`,
            "Content-Type": "application/json"
        }
    }).then(function (response) {
        console.log(response);
    }).catch(function (error) {
        console.log(error);
    });

image
image

Solved- for anyone who comes across this in the future, here’s my solution:

console.log("Buying long")
let stopPriceLong = XYZ
let params = {
    "accountSpec": "DEMO######",
    "accountId": ######,
    "action": "Buy",
    "symbol": "RTYH3",
    "orderQty": 1,
    "orderType": "TrailingStop",
    "stopPrice": stopPriceLong,
    "timeInForce": "GTC",
    "isAutomated": true
}

fetch('https://demo.tradovateapi.com/v1/order/placeorder', {
    method: 'POST',
         headers: {
             'Accept': 'application/json',
              'Authorization': `Bearer ${accessToken}`,
    },
    body: JSON.stringify(params)
}).then(res => res.json()).then((out) => {
    console.log(out)
}); 

The accountId is the Id field when you send a get request to https://demo.tradovateapi.com/v1/account/list and the accountSpec is the name field. I hope this helps anyone who encounters a similar issue in the future.