4 Replies Latest reply on Oct 5, 2016 1:17 PM by mattl RSS
    mattl Explorer

    Rest API - Accessing POST body in ThingWorx Services

    The question of accessing the full POST body has not been addressed yet in any of the documentation/community posts.

    With the following destination:

    https://.../Thingworx/Things/testthing/Services/TestRest?appKey=<appKey>&Content-Type=application/json&method=post

     

    and Body:

    {"Value1":11,"Value2":22,"Value3":33}


    In the 'TestRest' service, I can logger.warn the body values if the TestRest service has inputs named 'Value1','Value2' and 'Value3'.

    But if I don't know what those parameters are, how do I simply access the full message body that was sent?