I am working in Scala to wrap the API and I can get everything to work in the Orders API except for PATCH. I am using a library sttp to make the API calls and even though it may not be familiar I am sure the code is intuitive and my request is structured as follows
basicRequest.headers(Info.header).body(request_body).patch(uri"${Info.orders_endpoint}/$order_id")
I use the exact same structure for all my requests and they all work except in this case I use .patch and it does not and I get a error code of 422. The String I pass in as request_body would look something like this
{"qty":7,"time_in_force":"day","limit_price":"100"}
Anyone have any idea why I am getting code 422