Can I use IRE APIs to Delete a CI relationship?

nav sid
Tera Contributor

Hi, 

In one of the integrations to create and update CIs, we are using IRE APIs. - createOrUpdateCI.

I can create the relationships using this by sending the relationship data in JSON format, but I am not able to delete relationships using this?

Is there any way to delete CI relationships using IRE?

 

Thanks in advance!

2 REPLIES 2

Jason82
Tera Guru

I've been looking for the same thing and the CMDB Instance API looks like the it's the only method other than Table API.

 

The DELETE operation "Deletes the relation for the specified configuration item (CI)."

 

https://www.servicenow.com/docs/csh?topicname=cmdb-instance-api.html&version=latest

Sandeep90
ServiceNow Employee
ServiceNow Employee

@nav sid  No, you cannot delete through the IRE API but you can find the exact sys_id of the relationship by calling the identifyAPI/createOrUpdateCIEnhanced API and delete the record using glide.