# Is API Documentation up-to-date?

**URL:** <https://forums.losant.com/t/is-api-documentation-up-to-date/1789>\
**Category:** Bug Report\
**Tags:** rest-api\
**Created:** [May 9, 2019, 3:54pm UTC](https://forums.losant.com/t/is-api-documentation-up-to-date/1789 "2019-05-09T15:54:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Rauch](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@Mark\_Rauch](https://forums.losant.com/u/Mark_Rauch)\
**Post date:** [May 9, 2019, 3:54pm UTC](https://forums.losant.com/t/is-api-documentation-up-to-date/1789/1 "2019-05-09T15:54:57Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [May 9, 2019, 4:36pm UTC](https://forums.losant.com/t/is-api-documentation-up-to-date/1789/3 "2019-05-09T16:36:17Z")

</div>

Hi @Mark_Rauch,

It looks as though there is a bug in that endpoint, and our engineering team is currently working to fix it. I will update you when the fix is released! 😄

Cheers,  
Julia

---

<div class="post-metadata">

**Author:** ![Mark\_Rauch](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@Mark\_Rauch](https://forums.losant.com/u/Mark_Rauch)\
**Post date:** [May 13, 2019, 12:07pm UTC](https://forums.losant.com/t/is-api-documentation-up-to-date/1789/4 "2019-05-13T12:07:28Z")

</div>

Do you have an update yet?

**Mark Rauch**

Sr. Manager, Applications Development Office: 201.539.1621

![cid:a1f833ce-7c0d-4e61-be9d-713b286a5939](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/c/cdefbc5e7280d8470b22a65647846134dfc4e81c.jpeg)

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [May 13, 2019, 1:13pm UTC](https://forums.losant.com/t/is-api-documentation-up-to-date/1789/5 "2019-05-13T13:13:09Z")

</div>

Hi @Mark_Rauch,

A fix has been released for this endpoint. Thank you for your patience!

Cheers,  
Julia

---

<div class="post-metadata">

**Author:** ![Mark\_Rauch](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@Mark\_Rauch](https://forums.losant.com/u/Mark_Rauch)\
**Post date:** [May 13, 2019, 2:37pm UTC](https://forums.losant.com/t/is-api-documentation-up-to-date/1789/6 "2019-05-13T14:37:35Z")

</div>

Julia,

Thanks for getting back to me. I still cannot get it to work. Do you mean that the CURL command is OK as written and the code has been fixed or that the documentation was not correct? Have you been able to get it to work?

Mark

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [May 13, 2019, 4:08pm UTC](https://forums.losant.com/t/is-api-documentation-up-to-date/1789/7 "2019-05-13T16:08:04Z")

</div>

Hi Mark,

I was able to get export working with both Postman and cURL. However, Postman automatically set my Content-Type to “application/x-www-form-urlencoded” without my knowledge, resulting in the “query has additional parameters” error. Changing it back to application/json gave me a `{"success":true}` response. Here is my passing configuration for both:

**cURL**

 ![08%20AM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/6/6b904a7f806ca522f960777479dc9f42e1488c52.png)

**Postman**

 ![06%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/c/c3494d255c46ddefd39326014db725945e22a6cc.png) ![20%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/d/d0a6c5c6bdb6eb44ca57ab7da54cbcd9b90818b4.png) ![30%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/9/991599d9aa98ffa8c7209297a243536a3b698534.png)

If you are still unable to export the data, I would recommend testing with Postman and seeing what you get back!

Thanks,  
Julia
