[Solved] Error when trying the REST API

losant-api
rest-api
#1

Trying to post some data and I get the followiing message:

{“type”:“Validation”,“message”:“deviceState no (or more than one) schemas match”}

0 Likes

#3

Hi Lars,

It could be that you are using the REST API to send state, but your request is not properly formatted. You can take a look at our documentation on Send State and a valid request body example. The request body takes objects or arrays of objects of this form.

Thanks!
Julia

0 Likes

#4

Yes, that was it. Thanks

0 Likes