- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2018 09:39 AM
I'm wondering if it's possible to add or delete a relationship between configuration items using the REST API. For example, I'd like to add a parent-child relationship between two applications.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2018 11:14 AM
Relationships are held in a table. All tables have open APIs. So, theoretically, yes, you can do it. The table is cmdb_rel_ci, so the open table api would be https://instance.service-now.com/api/now/table/cmdb_rel_ci
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2018 11:14 AM
Relationships are held in a table. All tables have open APIs. So, theoretically, yes, you can do it. The table is cmdb_rel_ci, so the open table api would be https://instance.service-now.com/api/now/table/cmdb_rel_ci
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2019 05:40 PM
There is a fairly new alternative way of doing this through the CMDB Instance API (this can be further explored in the REST API Explorer).
Here is an example from Knowledge 18 lab manual using the API: