Skip to Content

RESTful API - Post Schedule with null value

Oct 18, 2017 at 08:42 PM


avatar image
Former Member

I have been working with the POST to /documents/<documentID>/schedules and merging in the parameters into the response body. I have pulled the parameters with a get /documents/<documentID>/parameters call and can place whatever parameters I want through a Design Studio file. However, this only works when I am trying to place a value in every prompt. In the case where a report has an optional prompt, the report will always default back to the previous value. If I tell the script to place a null value or "", I get a failure message from the RESTful service. Is there a preferred value that would allow the RESTful service to pass a blank value and the webI schedule to read it as an empty parameter?

Also, the javascript to set the parameters is based on finding the object in the GET parameters call, answer.values.value, and without the previous value set in the webI reports, this object does not exist. In order for a successful parameter to pass into an optional prompt when chosen, this object has to be there and as such keep previous value needs to be set for each prompt.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers