AnsweredAssumed Answered

webapi Error on Element value Adhoc calls

Question asked by jramirez on Mar 11, 2016
Latest reply on Mar 15, 2016 by bshang

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

Outcomes