6 Replies Latest reply on Mar 15, 2016 10:14 PM by bshang

    webapi Error on Element value Adhoc calls

    jramirez

      Hi

      I am writing a webapi app, I need to read a number of AF element values, when using a call to read a single AF element using this call:

       

      GET /piwebapi/streamsets/E090oHuENZ2Uajs5xAdRTurw3yKcqgXn5RGAwNSuUn-EygUzE2MTAwXFBSQVhBSVIgQ08yXENPMiBHRU9MT0NBTElaQVRJT05cNjAwNDI2MA/value

       

      Works perfectly, however, when using the valuesadhoc format:

       

      GET /piwebapi/streamsets/value?webid=E090oHuENZ2Uajs5xAdRTurw3yKcqgXn5RGAwNSuUn-ygUzE2MTAwXFBSQVhBSVIgQ08yXENPMiBHRU9MT0NBTElaQVRJT05cNjAwNDI2MA

       

      I am getting an error:

       

      Unknown or invalid WebID format: 'E090oHuENZ2Uajs5xAdRTurw3yKcqgXn5RGAwNSuUn-EygUzE2MTAwXFBSQVhBSVIgQ08yXENPMiBHRU9MT0NBTElaQVRJT05cNjAwNDI2MA'.

       

      Any ideas?

       

      Jaime