How to Create Service Catalog Using Scripted Rest API?

Ak8977
Tera Expert

I need to create a Service Catalog using Scripted Rest API, I know we have service catalog API. But I need a custom API for it. Can anyone help me on this. thanks.

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Ak8977 

you can use OOB Cart API to create REQ and RITM.

why to use another custom one when there is already 1 available OOB?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Tai Vu
Kilo Patron
Kilo Patron

Hi @Ak8977 

There's couple of API Type you can have a look.

Service Catalog API Developer / Service Catalog API Docs

CartJS

 

You can build your own custom APIs as well => Let's define some in the Scripted REST APIs [sys_ws_definition] table.

Ref to OOTB for existing resources.

Name: Service Catalog API

URL: https://<instance_name>/sys_ws_definition.do?sys_id=b4558e83c3a302006f333b0ac3d3ae8e

 

Cheers,

Tai Vu

svanto
Tera Contributor

Hi @Ak8977 

 

What help do you need with this?

 

This is a good article you can check on how to create scripted REST APIs.