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

Coleton
Kilo Guru

I would start with looking into Scripted REST API's.

Rahul Priyadars
Giga Sage
Giga Sage

REST API is available for Maintenance tables;

cmn_schedule_blackout-https://dev70063.service-now.com/api/now/table/cmn_schedule_blackout

cmn_schedule_maintenance- https://dev70063.service-now.com/api/now/table/cmn_schedule_maintenance

 

Please refer similar thread on this:

https://community.servicenow.com/community?id=community_question&sys_id=369e3ecedb926300d6a102d5ca96...

REgards

RP

Thank you for the quick response, RP. While the REST API creates a new record in the cmn_maintenance_schedule table, I was hoping to associate the Maintenance Schedule created to a CI.

 

Any pointers on doing that with the API?

 

Thanks

 

If you have unique criteria for the incoming cmn_maintenance_schedule record creations, you can have a BR auto-populate the CI.