Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RESTful API - Post Schedule with null value

Former Member
0 Likes
784

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.

0 REPLIES 0