AnsweredAssumed Answered

Update report template using API for one parameter

Question asked by harshajd on Aug 30, 2017

Hi All,

 

I am trying to update 'selection_range' parameter of the report template using API. I followed the steps mentioned in the API document, but I am getting bad request error.

 

$updateTemplate= "action=update&template_id=123456789&selection_type=date&selection_range=2017-08-01&report_format=xml"

Invoke-RestMethod -Headers $hdrs -Uri "$base/report/template/scan/" -Method PUT -Body $updateTemplate -WebSession $sess 

 

I am not sure why this error. Can somebody help

Outcomes