I tried to use the curl that is included in the Data API:
curl -H ‘Content-Type: application/json’
-H ‘Accept: application/json’
-H ‘Authorization: Bearer YOUR_API_ACCESS_TOKEN’
-X POST
-d ‘{“email”:“example@losant.com”,“deviceIds”:[“575ecf887ae143cd83dc4aa2”,“575ef5c97ae143cd83dc4aac”],“attributes”:[“voltage”],“end”:0,“options”:{“includeDate”:false,“includeID”:true}}’
https://api.losant.com/applications/APPLICATION_ID/data/export
The error message I receive is:
{“type”:“Validation”,“message”:“query has additional properties”}
I have gotten other API calls to work fine. It appears to me that I am missing a required property (when I enter the same thing with only the Email property - by the way, “email” gives me an error message but “Email” is OK - I get the same error. I know when I enter only the Email property that I am missing properties. So, I deduced that the error message tells me I am missing properties. But I am including all the properties in the API documentation, including the same CURL command with only minor modifications for my device.