John Schoewe

Automated Editing and Addition of ServiceNow CIs

How to use Python and the ServiceNow API to Automatically Create and Update Configuration Items

John Schoewe

3 minute read

The following is a quick tutorial on using the ServiceNow API with python to programatically create and update configuration items. A personal development instance of ServiceNow Jakarta was used for testing the code below.

About the ServiceNow API Servicenow uses a REST Table API that allows users to perform create, read, update and delete operations on existing tables. ServiceNow also provides you with a REST API Explorer that uses information from your instance to provide you with a list of endpoints, methods, and variables that you can use to build and send a REST request.