IoT API Call Help

I was able to find a solution to this problem on these two threads. To me it looks like poor API documentation. I had to remove device_id from the JSON payload and it worked.