Writing data to Mindsphere through mendix

0
I m trying to write the values in Mindsphere through Mendix application. For that I made a microflow for PUT request inside a button and sending a payload value to Mindsphere through Mendix. But I got error as status code 415 for the context-type non supported in application json.How to resolve it? 1.How to send value to Mindsphere through Mendix using REST API? 2.How to make send a request to be accepted to mindsphere through mendix   
asked
4 answers
0

Hi,
there are some great tutorials how to interact from your Mendix app with Mindsphere (InsightsHub)
https://academy.mendix.com/link/paths/80/Build-a-MindSphere-app-with-Mendix
and
https://academy.mendix.com/link/paths/93/Build-a-MindSphere-App---Continued

answered
0

Which API do you use?
https://documentation.mindsphere.io/MindSphere/apis/iot-iottimeseries/api-iottimeseries-api.html

HTTP 415 means that the server does not understand your meda type.
Have you specified a “Content-Type” header? it should be “application/json”
How do you build the body? I suggest to use an export mapping to create the JSON object.
 

answered
0

I’ve done this by calling /api/iottimeseries/v3/timeseries/<AssetID>/<AspectType> with Content-Type application/json. My data is created in JSON using an export mapping, which includes the timestamp and fields for the aspect

answered
0

Can you show the configuration of the PUT Node?

answered