Create a REQ via REST API with Python

clopezji04
Kilo Contributor

 

Hello SN Community.

In previous processes I have been able to use Python with the API to download incident reports, create and update incidents, as well as add files.

What I was looking for was to try to carry out a process in which the following steps:
 1. Create a request (REQ)
2. Create a request item (RITM) from the REQ created above. Searched in documentation or in previous posts but links, documentation is no longer available. Any sample code or documentation will be really helpfully. Best regards Charlie

 

1 REPLY 1

Vishal Birajdar
Giga Sage

Hi @clopezji04 

 

Yes we have OOTB scripted REST API mainly "Service Catalog API".

Resource : "Buy Item".

 

VishalBirajdar7_0-1695182078086.png

 

To send the payload please follow the below link :

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0784476

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates