Sunday, July 9, 2017

POSTMAN SAP IoT DATA API https://iotmmstrial.hanatrial.ondemand.com/com.sap.iotservices.mms/v1/api/http/data/7

Are you getting 401 - Unauthorized error while trying to send a message to SAP IoT MMS via POSTMAN?

The data APIs, require OAUTH token and not Basic Auth .  If you have used any other APIs that need a Basic Auth,  POSTMAN will start sending the basic auth value in "Authorization" header for the DATA APIs as well.

From the screenshot below you can see the difference between a successful message(first row) and a failed message(second row). Note that the User column, if it is OAUTH, this column should be empty.



No comments:

Post a Comment