Forum Discussion
The correct json body for updating Refresh Schedule with REST API.
Obviously it's not what I want, you just moved the sample body in the rest api, and didn't really check my problem. I have posted the link, so I must have checked it.
What I really want is that you can actually start from my problem. My requirement is Daily instead of certain days, and I also need include the contact person who will send the notification when it fails.
Well. The body is the example you need. If you want daily, just add all week days from monday to friday in case of working days. The example if more than enough to fullfill your scenario. You can't add a contact person. If you read the docs, you will see the only options for the body are
I hope that make sense
- YULIU113 years agoRegular Visitor
Yes, you got my key point. I also see the option for NotifyOption. That is the reason why I ask this question.
Because in my normal cognition, I can manually implement it on the web page. In theory, it can be achieved through the rest api. Even if there is no existing API, we may be able to grab a specific API through F12. But I did so and still failed.
The reason why we must implement it using the REST API is that in our Prod environment, we are not allowed to manually modify it, which is considered an unsafe behavior, and the company does not allow manual modification of the prod environment.
For the Daily setting, the option I got using the developer tools is 'isDaily': true, but it doesn't seem to work. Setting Monday to Sunday is a workaround, but the interface after setting is not as expected. Although the final effect is consistent, if the company's senior management is worried about this, it seems difficult to explain why it cannot choose every day.