Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Creating Maintenance Windows via REST API

Dev33
Tera Contributor

Hi,

How can I create a Maintenance Window for a CI via the REST API?

Thanks

 

 

5 REPLIES 5

Rahul Priyadars
Tera Sage

Hi ,

Maintenance schedule is a reference field of CI table.

find_real_file.png

Now If you some criterion for attaching a maintenance schedule with CI then You can do this also by REST APIs.

keep the sys_id value of Maintenance schedule and update the CI record using PUT API Call.

Regards

RP